Commit 394b128
committed
Fix handling of missing command by
Changes for users:
- (BREAKING) `dotenv run` exits with status code 1 instead of 2 if the command
provided as argument can't be found.
- `dotenv run` prints a friendly error message instead of a stack trace
if the command provided as argument can't be found.
Notes:
The existing test case was wrongly testing for that situation: it was
actually observing a "missing env file" error, not a "command not found
error". I thus added an appropriate test case for full coverage.dotenv run
1 parent f54d29f commit 394b128
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
241 | 252 | | |
242 | 253 | | |
243 | 254 | | |
| |||
0 commit comments