Skip to content

[3.x] Return correct exit code on exceptions#165

Merged
taylorotwell merged 2 commits intolaravel:masterfrom
LachlanArthur:feat/execute-exit-code
Jul 10, 2023
Merged

[3.x] Return correct exit code on exceptions#165
taylorotwell merged 2 commits intolaravel:masterfrom
LachlanArthur:feat/execute-exit-code

Conversation

@LachlanArthur
Copy link
Copy Markdown
Contributor

This PR modifies the behaviour of the --execute option to have it return an exit code of 1 when an exception is thrown.

Currently all exceptions are caught and rendered by Psysh internally, which makes it difficult to determine whether the command succeeded.

Original PR
Reopened on master branch as per #163 (comment)

@driesvints driesvints changed the title Return correct exit code on exceptions [3.x] Return correct exit code on exceptions Jul 10, 2023
Comment thread src/Console/TinkerCommand.php Outdated
@taylorotwell taylorotwell merged commit 69d58de into laravel:master Jul 10, 2023
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.

3 participants