www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 750d691712a9e8bde6367786380ea67a63c1db63
parent b4a9858f37634b9a21d3394c6891ae1e28bb0cee
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 29 Apr 2016 23:32:49 -0400

Throw errors instead of strings in FeedReader rejections

Diffstat:
Mchrome/content/zotero/xpcom/feedReader.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/feedReader.js b/chrome/content/zotero/xpcom/feedReader.js @@ -180,13 +180,13 @@ Zotero.FeedReader.prototype.terminate = function(status) { // Reject feed promise if not resolved yet if (this._feedProcessed.promise.isPending()) { - this._feedProcessed.reject(status); + this._feedProcessed.reject(new Error(status)); } // Reject feed item promise if not resolved yet let lastItem = this._feedItems[this._feedItems.length - 1]; if (lastItem.promise.isPending()) { - lastItem.reject(status); + lastItem.reject(new Error(status)); } // Close feed connection