From 83fe445f8f5a66c70a46617384f2e28cfd7121a0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Aug 2017 03:59:55 +0200 Subject: [PATCH] Fix error message in WebDAV purgeOrphanedStorageFiles() --- chrome/content/zotero/xpcom/storage/webdav.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index cf14fc1692..c22ffd77a5 100644 --- a/chrome/content/zotero/xpcom/storage/webdav.js +++ b/chrome/content/zotero/xpcom/storage/webdav.js @@ -1034,10 +1034,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = { // character in the URL and the server (e.g., Sakai) is // encoding the value && decodeURIComponent(href).indexOf(path) == -1) { - throw new Error( - "DAV:href '" + href + "' does not begin with path '" - + path + "' in " + funcName - ); + throw new Error(`DAV:href '${href}' does not begin with path '${path}'`); } var matches = href.match(/[^\/]+$/);