www

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

commit 6524e17deda72901aa3abcd5252b3bb01c739291
parent 82448c4a4d367e4e17382ae0c458bdaef3e59d45
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Thu, 21 Mar 2013 02:42:29 -0500

Show error message when attaching file fails.

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -294,7 +294,7 @@ Zotero.Translate.ItemSaver.prototype = { var uri = IOService.newURI(Zotero.File.encodeFilePath(path), "", this._baseURI); } catch (e) { - var msg = "Error parsing attachment path: " + path; + var msg = "Error parsing attachment path: " + path + "\n" + e.message; Zotero.logError(msg); Zotero.debug("Translate: " + msg, 2); return false; @@ -303,14 +303,14 @@ Zotero.Translate.ItemSaver.prototype = { try { var file = uri.QueryInterface(Components.interfaces.nsIFileURL).file; if (file.path == '/') { - var msg = "Error parsing attachment path: " + path; + var msg = "Error parsing attachment path: " + path + "\nRoot path returned."; Zotero.logError(msg); Zotero.debug("Translate: " + msg, 2); return false; } } catch (e) { - var msg = "Error getting file from attachment path: " + path; + var msg = "Error getting file from attachment path: " + path + "\n" + e.message; Zotero.logError(msg); Zotero.debug("Translate: " + msg, 2); return false;