From: <dg...@su...> - 2009-02-17 11:16:42
|
Author: bellmich Date: Tue Feb 17 12:14:22 2009 New Revision: 929 URL: http://libsyncml.opensync.org/changeset/929 Log: better error messages for unsupported WSP content types Modified: trunk/libsyncml/sml_notification.c Modified: trunk/libsyncml/sml_notification.c ============================================================================== --- trunk/libsyncml/sml_notification.c Mon Feb 16 16:40:20 2009 (r928) +++ trunk/libsyncml/sml_notification.c Tue Feb 17 12:14:22 2009 (r929) @@ -248,7 +248,8 @@ alert_ct = SML_ELEMENT_TEXT_PLAIN; break; default: - smlErrorSet(error, SML_ERROR_GENERIC, "Unknown content type"); + /* http://www.openmobilealliance.org/Tech/omna/omna-wsp-content-type.aspx */ + smlErrorSet(error, SML_ERROR_GENERIC, "The OMNA WSP Content Type Number 0x%xd is not supported.", contenttype); goto error_free_san; } @@ -462,7 +463,8 @@ else if (!strcmp(alert->contenttype, SML_ELEMENT_TEXT_PLAIN)) buffer[3] = 0x03; else { - smlErrorSet(error, SML_ERROR_GENERIC, "Unknown content type"); + /* http://www.openmobilealliance.org/Tech/omna/omna-wsp-content-type.aspx */ + smlErrorSet(error, SML_ERROR_GENERIC, "The OMNA WSP Content Type Number is unknown for %s.", alert->contenttype); goto error_free_data; } |