From 8359db142672ad2f643a298b6b3db2cc26357044 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 10 Oct 2014 17:35:07 -0400 Subject: [PATCH] Better debugging for saving from download overlay --- chrome/content/zotero/downloadOverlay.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/downloadOverlay.js b/chrome/content/zotero/downloadOverlay.js index 728de44ff0..4292ec7135 100644 --- a/chrome/content/zotero/downloadOverlay.js +++ b/chrome/content/zotero/downloadOverlay.js @@ -67,7 +67,14 @@ var Zotero_DownloadOverlay = new function() { libraryID = win.ZoteroPane.getSelectedLibraryID(); collection = win.ZoteroPane.getSelectedCollection(); } - } catch(e) {}; + // TODO: Just show an error instead? + else { + Zotero.debug("Cannot save files to library -- saving to personal library instead"); + } + } catch(e) { + Zotero.debug(e, 1); + }; + Zotero.debug("Library ID is " + libraryID); var recognizePDF = document.getElementById('zotero-recognizePDF').checked && !document.getElementById('zotero-recognizePDF').hidden