Skip to content

Commit

Permalink
Fix error message in WebDAV purgeOrphanedStorageFiles()
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Aug 10, 2017
1 parent 39bfeac commit 83fe445
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chrome/content/zotero/xpcom/storage/webdav.js
Expand Up @@ -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(/[^\/]+$/);
Expand Down

0 comments on commit 83fe445

Please sign in to comment.