www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 6064a230cdb37891abba395a7810267eab604d4c
parent 4e2f6f7bf9e4502326978fb79a7fc094d7c636a3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 24 Dec 2009 09:32:53 +0000

Include response headers in debug output for some unexpected errors


Diffstat:
Mchrome/content/zotero/xpcom/storage/zfs.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js @@ -96,6 +96,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getStorageFileInfo = function (item, var msg = "Unexpected status code " + req.status + " in " + funcName; Zotero.debug(msg + " (" + Zotero.Items.getLibraryKeyHash(item) + ")", 1); Zotero.debug(req.responseText); + Zotero.debug(req.getAllResponseHeaders()); self.onError(msg); return; } @@ -491,6 +492,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i var msg = "Unexpected status code " + req.status + " in " + funcName; Zotero.debug(msg + " (" + Zotero.Items.getLibraryKeyHash(item) + ")", 1); Zotero.debug(req.responseText); + Zotero.debug(req.getAllResponseHeaders()); self.onError(msg); return; } @@ -678,6 +680,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._onUploadComplete = function (httpRequ + " in Zotero.Sync.Storage._onUploadComplete()"; Zotero.debug(msg + " (" + Zotero.Items.getLibraryKeyHash(item) + ")", 1); Zotero.debug(req.responseText); + Zotero.debug(req.getAllResponseHeaders()); self.onError(msg); return; }