mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05: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',
|
||||
);
|
||||
return new BadRequestException(
|
||||
'Encountered an exception while validating the request.',
|
||||
`Errors were encountered while validating a request:\n${errorMessage}`,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue