Open alexgorbatchev opened 7 years ago
@shama any thoughts on this?
I don't think this fixes an issue. Calling watch
on a non-existent file should cause it to throw and there is a try catch there. So the ENOENT
is probably caused by something else.
This was the fix that prevented gaze from crashing in my scenario. Basically, files were being built and placed in the watched folder. Before the build, whole build folder would be removed.
I have a script that is actively deleting some of the directories being watched, this was causing gaze to fall over with
ENOENT
exception.This PR addresses this issue.