Skip to content

Conversation

@bbc2
Copy link
Collaborator

@bbc2 bbc2 commented Jan 11, 2026

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.

This should ideally be rebased on top of and merged after #604 to benefit from automated testing on Windows.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant