diff --git a/src/components/manifest/Form.tsx b/src/components/manifest/Form.tsx index 50d4df3..087353a 100644 --- a/src/components/manifest/Form.tsx +++ b/src/components/manifest/Form.tsx @@ -79,6 +79,10 @@ const Form = (props: any) => { }); }; + function getFormattedError(resJson) { + return resJson.message.startsWith("java.lang.RuntimeException:") ? (String(resJson.message)).substr(27) : resJson.message; + } + return (
{ } } else { toast.update(toastId, { - render: formatDisplayData({ - error: resJson.error, - message: resJson.message, - }), + render: getFormattedError(resJson), type: "error", autoClose: 5000, });