mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 23:16:59 +00:00
Update errors.ts
This commit is contained in:
parent
639914494f
commit
02ad42bba6
@ -56,6 +56,7 @@ export const normalizeError = (error: unknown) => {
|
|||||||
return {
|
return {
|
||||||
status: 400,
|
status: 400,
|
||||||
data: null,
|
data: null,
|
||||||
|
message: 'Validation error',
|
||||||
errors: normalizeZodIssues(error.issues).map((message) => ({ message })),
|
errors: normalizeZodIssues(error.issues).map((message) => ({ message })),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user