OSDN Git Service

Log an error for an inappropriate return value of commands.
authorDaigo Moriwaki <beatles@users.sourceforge.jp>
Sun, 4 Dec 2011 05:59:48 +0000 (14:59 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sun, 4 Dec 2011 05:59:48 +0000 (14:59 +0900)
shogi_server/player.rb

index 08425f5..d1395a4 100644 (file)
@@ -317,6 +317,7 @@ class Player < BasicPlayer
           # do nothing
         else
           # TODO never reach
+          log_error("Detected a wrong return value for %s" % [cmd])
         end
 
       ensure