From d4550807d8d3c61c00f26d13319ec94e87ad4f0a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Nov 2010 19:48:29 +0000 Subject: [PATCH] Fix incorrect WebDAV error calls --- chrome/content/zotero/xpcom/storage/webdav.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index 508c92b83..d06b19ad9 100644 --- a/chrome/content/zotero/xpcom/storage/webdav.js +++ b/chrome/content/zotero/xpcom/storage/webdav.js @@ -1347,7 +1347,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.purgeOrphanedStorageFiles = functio // character in the URL and the server (e.g., Sakai) is // encoding the value && decodeURIComponent(href).indexOf(path) == -1) { - self._error("DAV:href '" + href + self.onError("DAV:href '" + href + "' does not begin with path '" + path + "' in " + funcName); } @@ -1360,7 +1360,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.purgeOrphanedStorageFiles = functio var matches = href.match(/[^\/]+$/); if (!matches) { - self._error("Unexpected href '" + href + "' in " + funcName) + self.onError("Unexpected href '" + href + "' in " + funcName) } var file = matches[0]; @@ -1530,7 +1530,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype._deleteStorageFiles = function (fil if (callback) { callback(deleted); } - this._error("Root URI does not end in slash in " + this.onError("Root URI does not end in slash in " + "Zotero.Sync.Storage._deleteStorageFiles()"); } deleteURI.QueryInterface(Components.interfaces.nsIURL); @@ -1557,7 +1557,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype._deleteStorageFiles = function (fil var msg = "An error occurred attempting to delete " + "'" + fileName + "' (" + req.status + " " + req.statusText + ")."; - self._error(msg); + self.onError(msg); return; } @@ -1616,7 +1616,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype._deleteStorageFiles = function (fil var msg = "An error occurred attempting to delete " + "'" + fileName + "' (" + req.status + " " + req.statusText + ")."; - self._error(msg); + self.onError(msg); } }); });