Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

http/fetch: improve error messages #548

Merged
merged 1 commit into from
May 10, 2023
Merged

http/fetch: improve error messages #548

merged 1 commit into from
May 10, 2023

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented May 10, 2023

Would have helped with fluxcd/flux2#3861.

@hiddeco hiddeco added the enhancement New feature or request label May 10, 2023
@hiddeco hiddeco requested a review from a team as a code owner May 10, 2023 12:29
Copy link
Member

@makkes makkes left a comment

Choose a reason for hiding this comment

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

💯 Thanks!

@hiddeco hiddeco force-pushed the fetch-improve-err branch from 91ed6ac to 1e89569 Compare May 10, 2023 12:40
- Return a more specific error for an empty digest, instead of a parsing
  error.
- Include the digest in the error message when parsing fails.
- Tidy the format of some other errors.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco force-pushed the fetch-improve-err branch from 1e89569 to 7916c22 Compare May 10, 2023 12:49
@hiddeco hiddeco merged commit d25c2af into main May 10, 2023
@hiddeco hiddeco deleted the fetch-improve-err branch May 10, 2023 13:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants