mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
handle missing error messages
This commit is contained in:
parent
9340db36c1
commit
1608f0a8f9
2 changed files with 12 additions and 0 deletions
|
@ -378,6 +378,8 @@ relay_error_gtk( void* closure, XWREASON relayErr )
|
|||
"relay says another device deleted game.",
|
||||
GTK_BUTTONS_OK, 1000 );
|
||||
break;
|
||||
case XWRELAY_ERROR_DEADGAME:
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
break;
|
||||
|
|
|
@ -475,6 +475,16 @@ linux_getErrString( UtilErrID id, XP_Bool* silent )
|
|||
message = "You tried to supply more players than the host expected.";
|
||||
break;
|
||||
|
||||
case ERR_RELAY_BASE + XWRELAY_ERROR_DELETED:
|
||||
message = "Game deleted .";
|
||||
break;
|
||||
case ERR_RELAY_BASE + XWRELAY_ERROR_NORECONN:
|
||||
message = "Cannot reconnect.";
|
||||
break;
|
||||
case ERR_RELAY_BASE + XWRELAY_ERROR_DEADGAME:
|
||||
message = "Game is listed as dead on relay.";
|
||||
break;
|
||||
|
||||
default:
|
||||
XP_LOGF( "no code for error: %d", id );
|
||||
message = "<unrecognized error code reported>";
|
||||
|
|
Loading…
Reference in a new issue