change to erro handler middleware to log full error object and support express-validator
This commit is contained in:
@@ -92,6 +92,7 @@ describe('errorHandler', () => {
|
||||
originalUrl: req.originalUrl,
|
||||
headers: req.headers,
|
||||
body: req.body,
|
||||
fullError: error,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user