Better debugging for saving from download overlay

This commit is contained in:
Dan Stillman 2014-10-10 17:35:07 -04:00
parent 9c9b8b835d
commit 8359db1426

View file

@ -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