diff --git a/frontend/src/utils.ts b/frontend/src/utils.ts index 59c2db70..3b67cd04 100644 --- a/frontend/src/utils.ts +++ b/frontend/src/utils.ts @@ -183,6 +183,8 @@ export const handleFormError = (i18n: any, formRef: Ref, errObj: PydanticExcepti fields[name].setCustomValidity(msg); } }); + } else if (typeof detail === 'string') { // HttpException errors are just strings + return detail; } else { return detail.message; }