Additional debug output

This commit is contained in:
Dan Stillman 2012-01-15 02:59:32 -05:00
parent a2bb949bc0
commit d029fca692

View file

@ -366,16 +366,17 @@ Zotero.DataObjects = function (object, objectPlural, id, table) {
this.editCheck = function (obj) {
if (!Zotero.Sync.Server.updatesInProgress && !Zotero.Sync.Storage.updatesInProgress && !this.isEditable(obj)) {
try {
asfasf();
}
catch (e) {
Zotero.debug(e);
}
if (Zotero.Sync.Storage.syncInProgress) {
try {
asfasf();
}
catch (e) {
Zotero.debug(e);
}
Components.utils.reportError("Storage sync in progress but updatesInProgress not set -- fix?");
return;
}
Components.utils.reportError("Cannot edit " + this._ZDO_object + " in read-only Zotero library");
throw ("Cannot edit " + this._ZDO_object + " in read-only Zotero library");
}
}