Skip to content

Commit

Permalink
Add detail to item upload error toast
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Oct 2, 2024
1 parent dba3488 commit 12c6fcc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const showError = (event?: FileUploadErrorEvent | FileUploadUploadEvent) => {
severity: ERROR,
life: DEFAULT_ERROR_TOAST_LIFE,
summary: event?.xhr?.statusText || $gettext("Image upload failed"),
detail: JSON.parse(event?.xhr?.responseText ?? "{}").message,
});
};
</script>
Expand Down

0 comments on commit 12c6fcc

Please sign in to comment.