Fix error message in WebDAV purgeOrphanedStorageFiles()
This commit is contained in:
parent
39bfeac86c
commit
83fe445f8f
1 changed files with 1 additions and 4 deletions
|
@ -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(/[^\/]+$/);
|
||||
|
|
Loading…
Reference in a new issue