X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-error.c;h=4bd5498ea602f974e286404acc177d4624768a21;hp=26ab09dc24e9b12ef3860f56cd717270fe2b74b9;hb=82b903360548669988e41ffe055bc2215a28b404;hpb=f8bdcd97af8d0dcee79ab692fffb83dba5a5498a diff --git a/src/ttt-error.c b/src/ttt-error.c index 26ab09d..4bd5498 100644 --- a/src/ttt-error.c +++ b/src/ttt-error.c @@ -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;