jashkenas/coffee-script — comment on commit b9805f3f8044ea969d40a0de91316c251f3a9dad
File: src/command.coffee line 91
By TrevorBurnham:

`throw err if err` is the wrong way of dealing with an error from `fs.stat` here; it means that if a file is deleted between the `path.exists` call and the `fs.stat` call, the process exits with an `ENOENT`. This is actually pretty easy to replicate; I found that running `git init` in a watched dir will do it most of the time. Why not ditch the `path.exists` call and instead move the logic that uses `exists` so it instead uses `!err` inside of `fs.stat`?