diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index f8ff608ed..bc5bc5344 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); }