This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include API messages in errors (#169)
This updates the `formatErrorMessage` helper so that, if the API responded with an Error model, the messages from that Error model are appended to the status code & status description. This makes it easier for users to get visibility into why an API call failed. I chose to leave the existing code to support rfc7807 messages in place, just in case we ever migrate to that standard. Fixes #168
- Loading branch information