Two failure modes: * When the argument is negative, edit() attempts an invalid write, triggering an oops. edit() detects the write failure, and returns RET_FAIL. Detect the negative argument instead, and return RET_SYN, like we do for other invalid edit arguments. * When the argument requires the table to be extended, but the extension fails, edit() returns RET_FAIL. Additionally report the failure to the player. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
12 lines
388 B
Text
12 lines
388 B
Text
------------------------------------------------------
|
|
Empire server (pid 42) started
|
|
Update schedule read
|
|
No update scheduled
|
|
Listening on 127.0.0.1
|
|
Connect from 127.0.0.1
|
|
Connect from 127.0.0.1
|
|
tester@127.0.0.1 using country #0
|
|
tester@127.0.0.1 logged in as country #0
|
|
tester@127.0.0.1 logged out, country #0
|
|
Shutdown commencing (cleaning up threads.)
|
|
Server shutting down on signal 15
|