diff --git a/backend/src/middleware/validateRequest.ts b/backend/src/middleware/validateRequest.ts index 3bc106189..1b0364766 100644 --- a/backend/src/middleware/validateRequest.ts +++ b/backend/src/middleware/validateRequest.ts @@ -15,7 +15,7 @@ const validate = (req: Request, res: Response, next: NextFunction) => { try { const errors = validationResult(req); if (!errors.isEmpty()) { - return next(ValidationError({ context: { errors: `One or more of your paramters are invalid [error=${errors.array}]` } })) + return next(ValidationError({ context: { errors: `One or more of your parameters are invalid [error(s)=${(JSON.stringify(errors))}]` } })) } return next();