Skip to content

Commit

Permalink
return axios errors as eosjs formatted errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed May 25, 2020
1 parent 2b6a380 commit 7611075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/shared/utils/EOS/Handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export default class EOSHandler {
if (response.isAxiosError) {
return {
ok: false,
json: () => response.response.data
json: () => (response.response) ? response.response.data : {
message: response.message
}
};
}
// Return a response immitating what eosjs expects
Expand Down

0 comments on commit 7611075

Please sign in to comment.