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
639914494f
commit
02ad42bba6
@ -56,6 +56,7 @@ export const normalizeError = (error: unknown) => {
|
||||
return {
|
||||
status: 400,
|
||||
data: null,
|
||||
message: 'Validation error',
|
||||
errors: normalizeZodIssues(error.issues).map((message) => ({ message })),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user