hashicorp / hashicorp/go-retryablehttp
Improve `getBodyReaderAndContentLength` error
Open
- 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.