@rkticket/common 1.0.5 → 1.0.7

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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkticket/common",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [