Properly show saveURI errors in Zotero.Attachments.importFromURL()
This commit is contained in:
parent
f5c173b1e5
commit
496d4c5e77
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user