Skip to content

Ensure fail option used with curl to catch errors#78

Merged
JackPGreen merged 1 commit into
masterfrom
use-fail-option-when-sourcing-scripts-via-curl
Jun 25, 2026
Merged

Ensure fail option used with curl to catch errors#78
JackPGreen merged 1 commit into
masterfrom
use-fail-option-when-sourcing-scripts-via-curl

Conversation

@JackPGreen

Copy link
Copy Markdown
Contributor

By default, curl returns a 0 exit code even in the case of 404 errors.

This means that errors like the one in https://github.com/hazelcast/hazelcast-mono/pull/7091 are tricky to spot. It would be better if we used the fail option to ensure the failure is visible.

By default, curl returns a `0` exit code even in the case of 404 errors.

This means that errors like the one in hazelcast/hazelcast-mono#7091 are tricky to spot. It would be better if we used the [`fail` option](https://curl.se/docs/manpage.html#--fail) to ensure the failure is visible.
@sonarqubecloud

Copy link
Copy Markdown

@JackPGreen JackPGreen merged commit 52561f4 into master Jun 25, 2026
3 checks passed
@JackPGreen JackPGreen deleted the use-fail-option-when-sourcing-scripts-via-curl branch June 25, 2026 08:58
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