Commit 5073da0
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 5073da0Copy full SHA for 5073da0
File tree
Expand file treeCollapse file tree
2 files changed
+19
-1
lines changedOpen diff view settings
Filter options
- lib/internal
- test/sequential
Expand file treeCollapse file tree
2 files changed
+19
-1
lines changedOpen diff view settings
Collapse file
+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
92 | 92 | |
93 | 93 | |
94 | 94 | |
95 | | - |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
96 | 105 | |
97 | 106 | |
98 | 107 | |
|
Collapse file
test/sequential/test-repl-persistent-history.js
Copy file name to clipboardExpand all lines: test/sequential/test-repl-persistent-history.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
| 67 | + |
| 68 | + |
67 | 69 | |
68 | 70 | |
69 | 71 | |
70 | 72 | |
| 73 | + |
71 | 74 | |
72 | 75 | |
73 | 76 | |
| ||
147 | 150 | |
148 | 151 | |
149 | 152 | |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
150 | 159 | |
151 | 160 | |
152 | 161 | |
|
0 commit comments