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

ApiError improvement + fix #236

Merged
merged 2 commits into from
Nov 15, 2021
Merged

ApiError improvement + fix #236

merged 2 commits into from
Nov 15, 2021

Conversation

Pimm
Copy link
Collaborator

@Pimm Pimm commented Nov 15, 2021

  1. If an error is thrown where the cause has a response property ‒ probably because it's an AxiosError ‒ the thrown error only uses that response property if it is not undefined. This should reduce the unhelpful 'error without a message' errors by using the message property instead.
  2. Fixed a refactoring mistake I made in Deprecate predictable helper methods #233. (Luckily, I can put some of the blame on my IDE.)

@Pimm Pimm merged commit 5a1d556 into master Nov 15, 2021
@Pimm Pimm deleted the pimm/error-improvements branch November 15, 2021 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants