repl: don't crash if cannot open history file · nodejs/node@5073da0 · GitHub
Skip to content

Commit 5073da0

Browse files
evanlucasrvagg
authored andcommitted
repl: don't crash if cannot open history file
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: #3610 PR-URL: #3630 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
1 parent 8152248 commit 5073da0

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

lib/internal/repl.js

Lines changed: 10 additions & 1 deletion

test/sequential/test-repl-persistent-history.js

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)