Skip to content
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

fix: commands exit without crashing the thread #763

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

tobybatch
Copy link
Member

I was writing tests for the commands (currently <5% coverage) and most of the commands use exit(1) on error. This crashes the php thread.

Was that by design?

@charlesstrange2
Copy link
Contributor

I was writing tests for the commands (currently <5% coverage) and most of the commands use exit(1) on error. This crashes the php thread.

Was that by design?

possibly by design - it's what laravel encourages, partly so tests can catch the error output from a command, but also so if we ere to script commans from a cli we'd get the usual indicator of broken

Copy link
Contributor

@charlesstrange2 charlesstrange2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➡️ 🚪

@tobybatch tobybatch merged commit d0c99d6 into develop Mar 7, 2024
1 of 2 checks passed
@tobybatch tobybatch deleted the fix/exit-status-for-commands branch March 7, 2024 10:25
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.

2 participants