Fix bug 700637 - fix minor issue,a=philipp
authorPhilipp Kewisch <mozilla@kewis.ch>
Mon, 23 Jan 2012 00:23:31 +0100
changeset 10119 d27f4570cdce5d99b01eeff525c6f5f3d9c1f6b6
parent 10118 ee492eaff0e3301971b2e6fdcdf44efbf9cda57d
child 10120 ed09e1575902553d5cd654fef10f92955b1142ce
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs700637
Fix bug 700637 - fix minor issue,a=philipp
calendar/providers/storage/calStorageCalendar.js
--- a/calendar/providers/storage/calStorageCalendar.js
+++ b/calendar/providers/storage/calStorageCalendar.js
@@ -2496,17 +2496,17 @@ calStorageCalendar.prototype = {
 
         this.mDeleteMetaData(id, this.id);
         try {
             this.prepareStatement(this.mInsertMetaData);
             var sp = this.mInsertMetaData.params;
             sp.item_id = id;
             sp.value = value;
             this.mInsertMetaData.execute();
-        } catch (e if e.result == Components.results.NS_ERROR_ILLEGAL_VALUE) {
+        } catch (e if e.result != Components.results.NS_ERROR_ILLEGAL_VALUE) {
             // The storage service throws an NS_ERROR_ILLEGAL_VALUE in
             // case pval is something complex (i.e not a string or
             // number). Swallow this error, leaving the value empty.
             this.logError("Error setting metadata for id " + id + "!", e);
         } finally {
             this.mInsertMetaData.reset();
         }
     },