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 3a7854d5d6
commit a2d99fa351

View File

@ -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);
}