New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to catch errors if file do not exists or renamed #16
Comments
Currently the library doesn't handle this scenario. Feel free to send a pull request :-) On a side note: I guess it's note enough to just setTimeout. There's at least the need of a circuit breaker at some stage that will throw an exception and stop the library otherwise you go in an infinite -and probably not particularly useful- loop. |
…vents crashes - closes lucagrulla#16
release V1.0.0 is addressing the problem with an extra optional parameter that will disable the tail -F behaviour. |
Hi all,
there's no way to catch exception coming from "file not exists" error or "rename" events ?
This test crashes everytime. And I am not able to control exceptions.
It looks like problem comes from:
you may need to check if file exists before call @watch ... if it does not exist, call setTimeout and check again.
The text was updated successfully, but these errors were encountered: