From 2f65c7d29c08cf41c261e1219d57f57001a5f07d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 20 Dec 2016 03:33:04 -0500 Subject: [PATCH] Better error logging for https://forums.zotero.org/discussion/63029/ --- chrome/content/zotero/xpcom/uri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/uri.js b/chrome/content/zotero/xpcom/uri.js index e5abba6d7..16bd6c628 100644 --- a/chrome/content/zotero/xpcom/uri.js +++ b/chrome/content/zotero/xpcom/uri.js @@ -110,7 +110,7 @@ Zotero.URI = new function () { break; default: - throw ("Unsupported library type '" + libraryType + "' in Zotero.URI.getLibraryPath()"); + throw new Error(`Unsupported library type '${libraryType}' for library ${libraryID}`); } return libraryType + "s/" + id;