Closed chriskinsman closed 2 years ago
@lucagrulla, Any chance you could check this out and merge it? Fixes issues in our consumption of this package.
Thanks!
Hello @chriskinsman I might have some time over the weekend to review, merge and release.
Thanks, Luca
Thanks! Will leave you alone until 10/11!
The watchEvent method is an event handler for fs.watch().
It has no try/catch handler around it. When change() throws due to a ENOENT there is nothing to catch the exception which causes the process to terminate.
Added a try/catch around watchEvent and both log and emit any errors that are raised.
143