Commit 3f5ff8d
authored
lib: .load .save add proper error message when no file passed
This commit adds a proper error message using ERR_MISSING_ARGS('file')
when a .save or .load REPL command is runned. This commit also adds
test for both of this cases.
Fixes: nodejs#52218
Signed-off-by: Thomas Mauran <[email protected]>
PR-URL: nodejs#52225
Reviewed-By: Kohei Ueno <[email protected]>1 parent 67b9dda commit 3f5ff8d
2 files changed
+43
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
1788 | 1789 | | |
1789 | 1790 | | |
1790 | 1791 | | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1791 | 1795 | | |
1792 | 1796 | | |
1793 | | - | |
1794 | | - | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1795 | 1803 | | |
1796 | 1804 | | |
1797 | 1805 | | |
| |||
1801 | 1809 | | |
1802 | 1810 | | |
1803 | 1811 | | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1804 | 1815 | | |
1805 | 1816 | | |
1806 | 1817 | | |
| |||
1815 | 1826 | | |
1816 | 1827 | | |
1817 | 1828 | | |
1818 | | - | |
1819 | | - | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
1820 | 1835 | | |
1821 | 1836 | | |
1822 | 1837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
0 commit comments