www

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

commit 98544edde567ee22be20c3c68854221c1651fe62
parent 8913178cf298d24ce2f634f9e879dc065e6de4ec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  8 Jun 2017 14:10:41 -0400

Better logging when revealing attachment in filesystem

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 3++-
Mchrome/content/zotero/zoteroPane.js | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -948,6 +948,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); this.launchFile = function (file) { file = Zotero.File.pathToFile(file); try { + Zotero.debug("Launching " + file.path); file.launch(); } catch (e) { @@ -967,7 +968,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); .createInstance(Components.interfaces.nsILocalFile); exec.initWithPath(path); if (!exec.exists()) { - throw (path + " does not exist"); + throw new Error(path + " does not exist"); } var proc = Components.classes["@mozilla.org/process/util;1"] diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -4219,6 +4219,7 @@ var ZoteroPane = new function() if (path) { let file = Zotero.File.pathToFile(path); try { + Zotero.debug("Revealing " + file.path); file.reveal(); } catch (e) {