mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Update errors.ts
This commit is contained in:
parent
02ad42bba6
commit
cf1878e9f0
@ -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 })),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user