Skip to content

Commit

Permalink
Fix bug with axios error not including response value
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercollier committed Aug 9, 2022
1 parent cf348f8 commit 05985df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sync/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function catcher(msg, { destinationManager, logger } = {}) {
...extra,
}
// Useful for network errors when using axios
if ('response' in error) {
if (error && error.response) {
objToLog.responseData = typeof error.response.data === 'object' ? error.response.data.error : error.response.data
}

Expand Down

0 comments on commit 05985df

Please sign in to comment.