home · contact · privacy
Server: More expressive error message.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 22 Feb 2016 01:06:44 +0000 (02:06 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 22 Feb 2016 01:06:44 +0000 (02:06 +0100)
server/io.py

index ab3bbffc071e7e7b739c82f921ee4df71f22676b..ac7558efae318d99efa53105c5882a40f86f1515 100644 (file)
@@ -260,7 +260,7 @@ def obey(command, prefix, replay=False, do_record=False):
                     io_db["save_wait"] = time.time()
             io_db["worldstate_updateable"] = world_db["WORLD_ACTIVE"]
     elif 0 != len(tokens):
-        print("Invalid command/argument, or bad number of tokens.")
+        print("Invalid command/argument, or bad number of tokens: " + command)
 
 
 def obey_lines_in_file(path, name, do_record=False):