Fix redundant error logging

This commit is contained in:
Simon Kornblith 2012-05-30 00:27:02 -04:00
parent a549b9a407
commit 198850576a

View File

@ -1246,7 +1246,6 @@ Zotero.Integration.Fields.prototype.get = function(callback) {
callback(this._fields); callback(this._fields);
} }
} catch(e) { } catch(e) {
Zotero.logError(e);
Zotero.Integration.handleError(e, this._doc); Zotero.Integration.handleError(e, this._doc);
} }
return; return;
@ -1296,7 +1295,6 @@ Zotero.Integration.Fields.prototype._retrieveFields = function() {
} else if(topic === "fields-progress" && me.progressCallback) { } else if(topic === "fields-progress" && me.progressCallback) {
me.progressCallback((data ? parseInt(data, 10)*(3/4) : null)); me.progressCallback((data ? parseInt(data, 10)*(3/4) : null));
} else if(topic === "fields-error") { } else if(topic === "fields-error") {
Zotero.logError(data);
Zotero.Integration.handleError(data, me._doc); Zotero.Integration.handleError(data, me._doc);
} }
}, QueryInterface:XPCOMUtils.generateQI([Components.interfaces.nsIObserver, Components.interfaces.nsISupports])}); }, QueryInterface:XPCOMUtils.generateQI([Components.interfaces.nsIObserver, Components.interfaces.nsISupports])});