Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Aug 5, 2024
1 parent 9599f50 commit 9babf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/asyncRequestApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const postRequest = async (formData) => {
// see: https://axios-http.com/docs/handling_errors
const errorMessage = `post request failed: response.status = '${error.response?.status}', ` +
`data: '${error.response?.data}', ` +
`cause: '${error?.cause}'` +
`cause: '${error?.cause}' ` +
(error.request ? 'No response received, ' : '') +
`message: '${error.message ?? 'no meesage provided'}', ` +
(error.config ? `Error in Axios configuration ${error?.config}` : '')
Expand Down

0 comments on commit 9babf41

Please sign in to comment.