-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console ErrorHandler does not set correct exit code / return value #15202
Comments
Disagreed. |
Agree with @klimov-paul. The reason for handing it differently is running tests for commands. |
…sole\Controller`
Hi! Real Example:
Additionally |
What steps will reproduce the problem?
Create a console command that throws an exception:
What is the expected result?
A non-zero return value.
What do you get instead?
A zero return value (https://github.com/yiisoft/yii2/blob/master/framework/base/ErrorHandler.php#L112)
To me it would make more sense to always return exit code 1 in case we are handling an exception, no matter the environment.
The text was updated successfully, but these errors were encountered: