-
Notifications
You must be signed in to change notification settings - Fork 75
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
Attempting to open a non-existant file hard-crashes Node #16
Comments
This seems to be a specific example of #7. |
Any update or work around on this? |
The API is not following the node standard, because it does not use |
I was thinking about this, I think there should just be an I looks to me like Nick Ewing doesn't intend to actively maintain this...but he has merged PRs somewhat recently. |
@jedwards1211 You're right, I haven't had time to do fixes myself and I haven't been working with node recently. I am very happy to review and accept PRs however! |
Yeah, understandable! Well if I find time soon I'll see if I can make a PR for this. |
They way the internal
open
function is implemented, it simply throws any error it receives when attempting to open a file. This is a major problem since that error is in a OS-level callback and therefore can't be handled by the caller. Basically, a missing file can crash your entire app.Here's a brief code example which reproduces the problem:
The text was updated successfully, but these errors were encountered: