Move debug line in sync error handler to a more helpful place in the output

This commit is contained in:
Dan Stillman 2008-09-18 09:37:25 +00:00
parent 44c2783c76
commit a9dc3301af

View File

@ -1233,11 +1233,13 @@ Zotero.Sync.Server = new function () {
function _error(e, extraInfo) { function _error(e, extraInfo) {
if (extraInfo) { if (extraInfo) {
// Server errors will generally be HTML // Server errors will generally be HTML
var ZU = new Zotero.Utilities var ZU = new Zotero.Utilities;
extraInfo = ZU.unescapeHTML(extraInfo); extraInfo = ZU.unescapeHTML(extraInfo);
Components.utils.reportError(extraInfo); Components.utils.reportError(extraInfo);
} }
Zotero.debug(e, 1);
_syncInProgress = false; _syncInProgress = false;
_resetAttempts(); _resetAttempts();
Zotero.DB.rollbackAllTransactions(); Zotero.DB.rollbackAllTransactions();
@ -1254,7 +1256,6 @@ Zotero.Sync.Server = new function () {
else { else {
Zotero.Sync.Runner.lastSyncError = e; Zotero.Sync.Runner.lastSyncError = e;
} }
Zotero.debug(e, 1);
Zotero.Sync.Runner.reset(); Zotero.Sync.Runner.reset();
throw(e); throw(e);
} }