Skip to content

Commit

Permalink
fix: axios error e.response undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Oct 9, 2024
1 parent 8c6614a commit 839c39d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions command-handler/src/util/axios-error-handler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default function axiosError(e) {
const errorObj = {
data: e.response.data,
status: e.response.status,
data: e.respone ? e.response.data : null,
status: e.response ? e.response.status : null,
message: e.message,
stackTrace: e.stack

}
Expand Down

0 comments on commit 839c39d

Please sign in to comment.