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

This commit is contained in:
Dan Stillman 2015-02-01 21:07:49 -05:00
parent f5c173b1e5
commit 496d4c5e77

View File

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