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

Throw a more descriptive exception when the binary was not created #489

Merged
merged 1 commit into from Dec 12, 2023

Conversation

caendesilva
Copy link
Contributor

When the build command fails and a binary was not created, this results in an error like rename(app.phar, builds/app): the system cannot find the file specified . This is not very descriptive to the actual issue, so this PR adds a check to thrown an exception if the file was not created. This will make debugging easier.

See laravel-zero/laravel-zero#461

Copy link
Member

@owenvoke owenvoke left a comment

Choose a reason for hiding this comment

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

Makes sense to me, just a couple of small change suggestions.

src/Commands/BuildCommand.php Outdated Show resolved Hide resolved
When the build command fails and a binary was not created, this results in an error like `rename(app.phar, builds/app): the system cannot find the file specified `. This is not very descriptive to the actual issue, so this PR adds a check to thrown an exception if the file was not created. This will make debugging easier.

Co-Authored-By: Owen Voke <development@voke.dev>
@owenvoke owenvoke merged commit 9afbb03 into laravel-zero:master Dec 12, 2023
5 of 6 checks passed
@caendesilva caendesilva deleted the patch-1 branch December 13, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants