Skip to content

Commit

Permalink
Fix APIError not working on v14
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Aug 31, 2021
1 parent 5de7795 commit 9c34828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors/APIError.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class APIError extends Error {
super();
this.name = this.constructor.name;
this.status = response.status;
this.message = response.data?.error
this.message = response.data ? response.data.error : undefined
}
}

Expand Down

0 comments on commit 9c34828

Please sign in to comment.