hashicorp / hashicorp/go-retryablehttp

Improve `getBodyReaderAndContentLength` error

Open
#189 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
298
PR merge metrics
No merged PRs in 30d

Description

Right now function can return an error with very generic message. In case when body passes with wrong type.
Can error contains supported types of body that it expected in message, or to make it backward compatible - return custom error with message that is currently returning but with additional field like `[]string SupportedTypes`.
If it make sense - I can submit a PR

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.