From 8913178cf298d24ce2f634f9e879dc065e6de4ec Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 8 Jun 2017 14:10:15 -0400 Subject: [PATCH] Better logging for getAsync() non-integer errors --- chrome/content/zotero/xpcom/data/dataObjects.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js index 82eb9a657f..f07d477b82 100644 --- a/chrome/content/zotero/xpcom/data/dataObjects.js +++ b/chrome/content/zotero/xpcom/data/dataObjects.js @@ -175,7 +175,8 @@ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids, if (!Number.isInteger(id)) { // TEMP: Re-enable test when removed - Zotero.logError(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`); + let e = new Error(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`); + Zotero.logError(e); id = parseInt(id); //throw new Error(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`); }