From a9dc3301afe8a7dffe58ce99e2eb98767551f866 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 18 Sep 2008 09:37:25 +0000 Subject: [PATCH] Move debug line in sync error handler to a more helpful place in the output --- chrome/content/zotero/xpcom/sync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index f8ff608edd..bc5bc53444 100644 --- 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); }