]> git.cworth.org Git - ttt/blobdiff - src/ttt-error.c
2005-11-24 Carl Worth <cworth@cworth.org>
[ttt] / src / ttt-error.c
index 26ab09dc24e9b12ef3860f56cd717270fe2b74b9..4bd5498ea602f974e286404acc177d4624768a21 100644 (file)
@@ -27,26 +27,30 @@ ttt_error_string (ttt_error_t error)
     switch (error) {
     case TTT_ERROR_NONE:
        return "ERROT NONE\n";
-    case TTT_ERROR_NONAMESET:
+    case TTT_ERROR_NO_NAME_SET:
        return "ERROR NONAMESET\n";
-    case TTT_ERROR_INVALIDNAME:
+    case TTT_ERROR_INVALID_NAME:
        return "ERROR INVALIDNAME\n";
     case TTT_ERROR_COMMAND:
        return "ERROR COMMAND\n";
     case TTT_ERROR_SYNTAX:
        return "ERROR SYNTAX\n";
-    case TTT_ERROR_NOTNUMBER:
+    case TTT_ERROR_NOT_NUMBER:
        return "ERROR NOTNUMBER\n";
-    case TTT_ERROR_NOTGRID:
+    case TTT_ERROR_NOT_GRID:
        return "ERROR NOTGRID\n";
-    case TTT_ERROR_NOUSER:
+    case TTT_ERROR_NO_USER:
        return "ERROR NOUSER\n";
-    case TTT_ERROR_NOTINGAME:
+    case TTT_ERROR_NOT_IN_GAME:
        return "ERROR_NOTINGAME\n";
-    case TTT_ERROR_NOTPLAYING:
+    case TTT_ERROR_NOT_PLAYING:
        return "ERROR_NOTPLAYING\n";
-    case TTT_ERROR_NOTYOURTURN:
+    case TTT_ERROR_NOT_YOUR_TURN:
        return "ERROR NOTYOURTURN\n";
+    /* Not an actual protocol errror, so this should never happen. */
+    case TTT_ERROR_QUIT_REQUESTED:
+       ASSERT_NOT_REACHED;
+       break;
     }
 
     ASSERT_NOT_REACHED;