From 4cf4e13a7b5f2bd5959d791ce611fbdf33a2264f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Feb 2012 18:10:09 -0500 Subject: [PATCH] Add more helpful error message for file import error --- chrome/content/zotero/xpcom/attachments.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index a7ae4ec87..e246a88bc 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -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) {