www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4cf4e13a7b5f2bd5959d791ce611fbdf33a2264f
parent 39fc50913c2df07b06595e8ab38a934b1dca1ae5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 21 Feb 2012 18:10:09 -0500

Add more helpful error message for file import error

Diffstat:
Mchrome/content/zotero/xpcom/attachments.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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) {