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(scripts): catch and exit if building fails #634

Merged
merged 1 commit into from
Jun 23, 2024
Merged

Conversation

FedeIlLeone
Copy link
Member

Previously it would have printed an error in the console but would have continued anyway saying that the building process went ok. With this PR instead if an error is caught by the building then we exit immeditately with a failure code 1. In this way the jobs of a workflow on GitHub also fail if something goes wrong.

https://discord.com/channels/1000926524452647132/1000955967627874424/1254504021570486302
The job would have ended successfully even if the building had not gone well, making the developer believe that the addon was ready.

Tested with various cases, even with watch.

@FedeIlLeone FedeIlLeone added bug Something isn't working semver: patch Requires a patch semver version bump labels Jun 23, 2024
Copy link
Member

@colin273 colin273 left a comment

Choose a reason for hiding this comment

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

LGTM

@FedeIlLeone FedeIlLeone merged commit 40eb0a4 into main Jun 23, 2024
14 checks passed
@FedeIlLeone FedeIlLeone deleted the catch-failed-build branch June 23, 2024 23:32
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver: patch Requires a patch semver version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants