change to erro handler middleware to log full error object and support express-validator

This commit is contained in:
Matteo Pagliazzi
2015-11-11 10:12:13 +01:00
parent e518e2795f
commit 8f9d2a5f9a
2 changed files with 10 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ describe('errorHandler', () => {
originalUrl: req.originalUrl,
headers: req.headers,
body: req.body,
fullError: error,
});
});