Skip to content

Commit

Permalink
fix: add message httpStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmichel committed Jun 26, 2023
1 parent e48f5a9 commit 7e957b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/useFileUploadS3Multipart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,12 @@ const useFileUploadS3Multipart = ({
errorCallback({
uuid: null,
fileName: file.name,
message: 'Existió un error al cargar el archivo, intente nuevamente.',
httpStatus: detail?.httpStatus || 500
message: detail?.errors
? detail?.errors
: detail?.message
? detail?.message
: 'Existió un error al cargar el archivo, intente nuevamente.',
httpStatus: detail?.httpStatus || 500,
});
}

Expand Down

0 comments on commit 7e957b4

Please sign in to comment.