Add more helpful error message for file import error

This commit is contained in:
Dan Stillman 2012-02-21 18:10:09 -05:00
parent 39fc50913c
commit 4cf4e13a7b

View file

@ -102,6 +102,10 @@ Zotero.Attachments = new function(){
// hmph
Zotero.DB.rollbackTransaction();
var msg = "Failed importing file " + file.path;
Components.utils.reportError(msg);
Zotero.debug(msg, 1);
try {
// Clean up
if (itemID) {