From 437b457134c4b6fea845d29e453af02b3c8b2fd7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 7 Jan 2023 15:24:28 -0500 Subject: [PATCH] Additional logging for "Invalid sync state undefined" https://forums.zotero.org/discussion/102186/invalid-sync-state-undefined --- chrome/content/zotero/xpcom/storage/storageEngine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage/storageEngine.js b/chrome/content/zotero/xpcom/storage/storageEngine.js index 255d8d6d15..8f82cdc3b0 100644 --- a/chrome/content/zotero/xpcom/storage/storageEngine.js +++ b/chrome/content/zotero/xpcom/storage/storageEngine.js @@ -327,7 +327,8 @@ Zotero.Sync.Storage.Engine.prototype.queueItem = Zotero.Promise.coroutine(functi return; default: - throw new Error("Invalid sync state " + item.attachmentSyncState); + throw new Error("Invalid sync state " + item.attachmentSyncState + " for item " + + item.libraryKey); } if (type == 'upload') {