We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f3a1ec commit d0da789Copy full SHA for d0da789
src/middlewares/ExpressErrorYup.ts
@@ -11,6 +11,7 @@ async function ExpressErrorYup(
11
if (err instanceof ValidationError) {
12
console.log('ERROR YUP VALIDATION!!!')
13
const error = {
14
+ code: 422,
15
message: err.errors.join('<br/>') || 'Yup Validation Error !',
16
errors:
17
err.inner.length > 0
0 commit comments