@rkticket/common 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ const errorHandler = (err, req, res, next) => {
|
|
6
6
|
if (err instanceof custom_error_1.CustomError) {
|
7
7
|
console.log(res.status(err.statusCode).send({ errors: err.serializeErrors() }));
|
8
8
|
}
|
9
|
+
console.error(err);
|
9
10
|
res.status(400).send({
|
10
11
|
errors: [{ message: 'Something went wrong' }],
|
11
12
|
});
|