Skip to content

Commit

Permalink
Extra logging to help figure out #41
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Apr 28, 2016
1 parent c9c359d commit 188de41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions accelerator/src/accelerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,15 @@ handlers.fileData = function({files, pluginId}) {
if (watchers[key])
watchers[key].close();

watchers[key] =
fs.watch(key, onChange.bind(null, key, pluginId, files[key]));
try {
watchers[key] =
fs.watch(key, onChange.bind(null, key, pluginId, files[key]));
} catch (err) {
// On Linux the thrown error actually gives the problematic file name,
// but not on Windows
log("Error watching " + key);
throw err;
}
}
};

Expand Down

0 comments on commit 188de41

Please sign in to comment.