Skip to content

Always print an error message, never error silently#262

Merged
DilumAluthge merged 2 commits intomasterfrom
dpa/never-error-silently
Jul 18, 2024
Merged

Always print an error message, never error silently#262
DilumAluthge merged 2 commits intomasterfrom
dpa/never-error-silently

Conversation

@DilumAluthge
Copy link
Member

@DilumAluthge DilumAluthge commented Jul 13, 2024

Ref #240
Ref #241

This PR does NOT fix the actual problem in #240 or #241, but it does fix the problem of setup-julia erroring silently and not printing a log message.

With this PR, as a general rule, we always print the error message before we throw the error.

@DilumAluthge DilumAluthge force-pushed the dpa/never-error-silently branch from 4374e95 to 3b54df9 Compare July 13, 2024 21:07
@DilumAluthge DilumAluthge marked this pull request as ready for review July 13, 2024 21:09
@DilumAluthge DilumAluthge requested a review from a team as a code owner July 13, 2024 21:09
@DilumAluthge
Copy link
Member Author

Bump @IanButterworth @omus.

I think this PR is a strict improvement over the status quo, because (AFAICT) it makes sure that this action never errors without printing logs first.

@DilumAluthge DilumAluthge merged commit ba42af3 into master Jul 18, 2024
@DilumAluthge DilumAluthge deleted the dpa/never-error-silently branch July 18, 2024 15:30
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