From d029fca6929e03367fe3f17be8f1051708bcf331 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 15 Jan 2012 02:59:32 -0500 Subject: [PATCH] Additional debug output --- chrome/content/zotero/xpcom/data/dataObjects.js | 13 +++++++------ 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 index c991fa36ad..5896142166 100644 --- 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"); } }