diff --git a/scripts/core/helpers/crud-manager-http.tsx b/scripts/core/helpers/crud-manager-http.tsx index e1863e180a..b3e1dde267 100644 --- a/scripts/core/helpers/crud-manager-http.tsx +++ b/scripts/core/helpers/crud-manager-http.tsx @@ -97,6 +97,14 @@ export function connectCrudManagerHttp this.refresh()) .then(() => { notify.success(gettext('The item has been deleted.')); + }) + .catch((reason) => { + if (reason != null && reason.message != null) { + notify.error(reason.message); + return; + } + + return Promise.reject(reason); }); }