Skip to content

Commit

Permalink
Better logging when revealing attachment in filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jun 8, 2017
1 parent 8913178 commit 98544ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chrome/content/zotero/xpcom/zotero.js
Expand Up @@ -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) {
Expand All @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions chrome/content/zotero/zoteroPane.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 98544ed

Please sign in to comment.