add error messages

This commit is contained in:
ehouse 2005-09-04 20:34:16 +00:00
parent 6c1f8c4bcc
commit c319711cb1
2 changed files with 21 additions and 0 deletions

View file

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

View file

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