www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 496d4c5e7721e494dc917b9ae6db916462f88509
parent f5c173b1e5ed80df1fe216a2678e35a037745252
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  1 Feb 2015 21:07:49 -0500

Properly show saveURI errors in Zotero.Attachments.importFromURL()

Diffstat:
Mchrome/content/zotero/xpcom/attachments.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js @@ -348,11 +348,12 @@ Zotero.Attachments = new function(){ .createInstance(Components.interfaces.nsIURL); nsIURL.spec = url; Zotero.Utilities.Internal.saveURI(wbp, nsIURL, file); - return attachmentItem; } catch (e){ + Zotero.debug(e, 1); + Components.utils.reportError(e); Zotero.DB.rollbackTransaction(); try {