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

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!

- 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 merged commit d25c2af into main May 10, 2023
@hiddeco hiddeco deleted the fetch-improve-err branch May 10, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants