handle missing error messages

This commit is contained in:
Eric House 2012-09-09 15:49:17 -07:00
parent 9340db36c1
commit 1608f0a8f9
2 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -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>";