Skip to content

Commit

Permalink
fix(handleError): Displays validation errors as strings in logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Nov 17, 2017
1 parent 2e94557 commit 3d248a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressPresenter/utils/handleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default ({ config, errorId, res, err }: Options): Response => {
return translateWarning(translator, warning);
});
const obj = { warnings: strWarnings };
logError('Validation warnings', warnings);
logError('Validation warnings', strWarnings);
return sendObject({ res, code, errorId, obj });
}
if (err instanceof NoModel) {
Expand Down

0 comments on commit 3d248a9

Please sign in to comment.