commit a9dc3301afe8a7dffe58ce99e2eb98767551f866
parent 44c2783c767cfe88c3336d52ba935240485102b9
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 18 Sep 2008 09:37:25 +0000
Move debug line in sync error handler to a more helpful place in the output
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js
@@ -1233,11 +1233,13 @@ Zotero.Sync.Server = new function () {
function _error(e, extraInfo) {
if (extraInfo) {
// Server errors will generally be HTML
- var ZU = new Zotero.Utilities
+ var ZU = new Zotero.Utilities;
extraInfo = ZU.unescapeHTML(extraInfo);
Components.utils.reportError(extraInfo);
}
+ Zotero.debug(e, 1);
+
_syncInProgress = false;
_resetAttempts();
Zotero.DB.rollbackAllTransactions();
@@ -1254,7 +1256,6 @@ Zotero.Sync.Server = new function () {
else {
Zotero.Sync.Runner.lastSyncError = e;
}
- Zotero.debug(e, 1);
Zotero.Sync.Runner.reset();
throw(e);
}