mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-14 22:45:14 +00:00
Log schema name on error
This commit is contained in:
@@ -135,7 +135,7 @@ export function route(opts: RouteOptions) {
|
||||
);
|
||||
if (process.env.LOG_VALIDATION_ERRORS)
|
||||
console.log(
|
||||
`[VALIDATION ERROR] ${req.method} ${req.originalUrl} -`,
|
||||
`[VALIDATION ERROR] ${req.method} ${req.originalUrl} - SCHEMA='${opts.requestBody}' -`,
|
||||
validate?.errors,
|
||||
);
|
||||
throw FieldErrors(fields);
|
||||
|
||||
Reference in New Issue
Block a user