-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
If NODE_REPL_HISTORY file cannot be opened, Node crashes #3610
Labels
repl
Issues and PRs related to the REPL subsystem.
Comments
I guess it can just log you an error. I think this was brought up before? |
@evanlucas - Thanks for the PR. Looks good to me! |
evanlucas
added a commit
to evanlucas/node
that referenced
this issue
Nov 3, 2015
Previously, if we are unable to open the history file, an error would be thrown. Now, print an error message that we could not open the history file, but don't fail. Fixes: nodejs#3610 PR-URL: nodejs#3630 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the NODE_REPL_HISTORY file cannot be opened (i.e. read-only file system, permission issue, etc.), Node simply crashes. This is probably an uncaught "error" event.
This behavior seems silly to me. The NODE_REPL_HISTORY file is a convenience, not a requirement. Even though it can be disabled by an environment flag, if it cannot be opened, it should silently fail. Or, perhaps, NODE_REPL_HISTORY should be disabled by default?
Thoughts?
The text was updated successfully, but these errors were encountered: