From c319711cb1d61958229658830c542e52d1eb913f Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 4 Sep 2005 20:34:16 +0000 Subject: [PATCH] add error messages --- palm/l10n/StrRes_en_US.pre | 8 ++++++++ palm/palmmain.c | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/palm/l10n/StrRes_en_US.pre b/palm/l10n/StrRes_en_US.pre index c501a5316..18556019e 100644 --- a/palm/l10n/StrRes_en_US.pre +++ b/palm/l10n/StrRes_en_US.pre @@ -136,3 +136,11 @@ #endif { "STRS_CANNOT_FIND_DICT", "%s dictionary not found." }, { "STR_DICT_COPY_EXPL", "Copying dictionary from card..." }, + +#ifdef BEYOND_IR +{ "STR_RELAY_TIMEOUT", "Relay error: Other devices failed to " + "connect." }, +{ "STR_RELAY_LOST_OTHER", "Relay error: another device has lost its " + "connection." }, +{ "STR_RELAY_GENERIC", "Relay error: something's wrong." }, +#endif diff --git a/palm/palmmain.c b/palm/palmmain.c index 9f8d2d4d1..4c066ca43 100644 --- a/palm/palmmain.c +++ b/palm/palmmain.c @@ -3221,6 +3221,19 @@ palm_util_userError( XW_UtilCtxt* uc, UtilErrID id ) strID = STR_CANT_UNDO_TILEASSIGN; break; +#ifdef BEYOND_IR + case ERR_RELAY_BASE + XWRELAY_ERROR_TIMEOUT: + strID = STR_RELAY_TIMEOUT; + break; + case ERR_RELAY_BASE + XWRELAY_ERROR_HEART_YOU: + strID = STR_RELAY_GENERIC; + break; + case ERR_RELAY_BASE + XWRELAY_ERROR_HEART_OTHER: + case ERR_RELAY_BASE + XWRELAY_ERROR_LOST_OTHER: + strID = STR_RELAY_LOST_OTHER; + break; +#endif + default: XP_DEBUGF( "errcode=%d", id ); break;