Bug 566339 - CalDAV errors lack enough information. r=philipp
authorSimon Vaillancourt <simon.at.orcl@gmail.com>
Tue, 30 Nov 2010 14:54:58 -0500
changeset 6768 eccc23e8ab740963c51cf08291af2e374d3eaec8
parent 6766 20fe92a74dc31f100afa636a0eba2017d3260cea (current diff)
parent 6767 3ebf6a06e87eeda4383c4c59c9a4d5df85023476 (diff)
child 6769 3c698d5b775d6f9b595c4a9fa86805ad15486738
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs566339
Bug 566339 - CalDAV errors lack enough information. r=philipp
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -1940,31 +1940,31 @@ calDavCalendar.prototype = {
                          calGetString("calendar", message , [this.mUri.spec]));
         this.notifyError(modificationError
                          ? Components.interfaces.calIErrors.MODIFICATION_FAILED
                          : Components.interfaces.calIErrors.READ_FAILED,
                          this.buildDetailedMessage(status, extraInfo));
     },
 
     buildDetailedMessage : function caldav_buildDetailedMessage(status, extraInfo) {
-        if (!status || !extraInfo) {
+        if (!status) {
             return "";
         }
 
         var props = calGetStringBundle("chrome://calendar/locale/calendar.properties");
         let statusString;
         try {
             statusString = props.GetStringFromName("caldavRequestStatusCodeString" + status);
         } catch (e) {
             // Fallback on generic string if no string is defined for the status code
             statusString = props.GetStringFromName("caldavRequestStatusCodeStringGeneric");
         }
         return props.formatStringFromName("caldavRequestStatusCode", [ status ], 1) + ", " +
                statusString + "\n\n" +
-               extraInfo;
+               (extraInfo ? extraInfo : "");
 
     },
 
     //
     // calIFreeBusyProvider interface
     //
 
     getFreeBusyIntervals: function caldav_getFreeBusyIntervals(