commit 8913178cf298d24ce2f634f9e879dc065e6de4ec parent 0495f2920a36bd665fea4f92f9b6f2bb190f28eb Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 8 Jun 2017 14:10:15 -0400 Better logging for getAsync() non-integer errors Diffstat:
| M | 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 @@ -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})`); }