commit d029fca6929e03367fe3f17be8f1051708bcf331
parent a2bb949bc0550d3c3d8b2a3eb1a5dfb1bf2c25f9
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 15 Jan 2012 02:59:32 -0500
Additional debug output
Diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js
@@ -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");
}
}