feat(validation): send error message to client

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-03-04 20:05:07 +01:00 committed by Philip Molares
parent a31e4f4dfc
commit 324536bc2d

View file

@ -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}`,
); );
}, },
}); });