Update errors.ts

This commit is contained in:
Catalin Pinte 2022-10-05 17:30:11 +03:00
parent 02ad42bba6
commit cf1878e9f0

View File

@ -56,7 +56,8 @@ export const normalizeError = (error: unknown) => {
return {
status: 400,
data: null,
message: 'Validation error',
message:
'Validation error, please check the input data check errors property for more info',
errors: normalizeZodIssues(error.issues).map((message) => ({ message })),
}
}