mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
feat(validation): send error message to client
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a31e4f4dfc
commit
324536bc2d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export function setupValidationPipe(
|
||||||
'ValidationPipe',
|
'ValidationPipe',
|
||||||
);
|
);
|
||||||
return new BadRequestException(
|
return new BadRequestException(
|
||||||
'Encountered an exception while validating the request.',
|
`Errors were encountered while validating a request:\n${errorMessage}`,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue