Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Show full validation error

Maidul Islamf2bd4aec39ca
diff --git a/backend/src/middleware/validateRequest.ts b/backend/src/middleware/validateRequest.ts
index 3bc106189f..1b03647666 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();