- Fix error in previous commit
- Log stack trace to error console on sync errors
This commit is contained in:
parent
3341336232
commit
7008fa41cf
2 changed files with 10 additions and 1 deletions
|
@ -1763,7 +1763,7 @@ Zotero.Item.prototype.save = function() {
|
|||
if (this._previousData) {
|
||||
var oldSourceItemKey = this._previousData.sourceItemKey;
|
||||
if (oldSourceItemKey) {
|
||||
var oldSourceItem = Zotero.Items.getByKey(this.libraryID, oldSourceItemKey);
|
||||
var oldSourceItem = Zotero.Items.getByLibraryAndKey(this.libraryID, oldSourceItemKey);
|
||||
}
|
||||
if (oldSourceItem) {
|
||||
var oldSourceItemNotifierData = {};
|
||||
|
|
|
@ -1720,6 +1720,15 @@ Zotero.Sync.Server = new function () {
|
|||
|
||||
Zotero.Sync.Runner.setError(e.message ? e.message : e);
|
||||
Zotero.Sync.Runner.reset();
|
||||
try {
|
||||
undefinedFunction();
|
||||
}
|
||||
catch (e) {
|
||||
// Log stack trace to error console
|
||||
if (e.stack) {
|
||||
Components.utils.reportError(e.stack.substr(0, 600));
|
||||
}
|
||||
}
|
||||
Components.utils.reportError(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue