Skip to content

Commit 502365e

Browse files
committed
common module update
1 parent a606c49 commit 502365e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples_new/microservices/common/build/middlewares/errorHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const errorHandler = (err, req, res, next) => {
77
console.log(err.message);
88
// check if incoming error extends the CustomError class
99
if (err instanceof custom_error_1.CustomError) {
10-
return res.status(err.statusCode).send(err.formatError);
10+
return res.status(err.statusCode).send(err.formatError());
1111
}
1212
// if not a custom error send default internal error message
1313
return res.status(500).send({ message: 'Something went wrong' });

examples_new/microservices/common/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples_new/microservices/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chronosrx/common",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Common modules for Chronos Microservice",
55
"main": "./build/index.js",
66
"types": "./build/index.d.ts",

0 commit comments

Comments
 (0)