Add more helpful error message for file import error
This commit is contained in:
parent
39fc50913c
commit
4cf4e13a7b
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ Zotero.Attachments = new function(){
|
||||||
// hmph
|
// hmph
|
||||||
Zotero.DB.rollbackTransaction();
|
Zotero.DB.rollbackTransaction();
|
||||||
|
|
||||||
|
var msg = "Failed importing file " + file.path;
|
||||||
|
Components.utils.reportError(msg);
|
||||||
|
Zotero.debug(msg, 1);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Clean up
|
// Clean up
|
||||||
if (itemID) {
|
if (itemID) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue