From 1608f0a8f9935605ba6a7144d508c9400af55afb Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 9 Sep 2012 15:49:17 -0700 Subject: [PATCH] handle missing error messages --- xwords4/linux/gtkmain.c | 2 ++ xwords4/linux/linuxutl.c | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/xwords4/linux/gtkmain.c b/xwords4/linux/gtkmain.c index f55298352..733884631 100644 --- a/xwords4/linux/gtkmain.c +++ b/xwords4/linux/gtkmain.c @@ -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; diff --git a/xwords4/linux/linuxutl.c b/xwords4/linux/linuxutl.c index 1b4f9e51c..65db504ec 100644 --- a/xwords4/linux/linuxutl.c +++ b/xwords4/linux/linuxutl.c @@ -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 = "";