Skip to content

Commit

Permalink
fix(api-gateway): let app die when not safe exception #11
Browse files Browse the repository at this point in the history
  • Loading branch information
tuana9a committed Sep 3, 2024
1 parent 7449d0b commit 5e2cae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api-gateway/src/middlewares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ export const ExceptionWrapper = (handler: (req: Request, resp: Response, next?:
}
logger.error(err);
resp.status(500).send(new BaseResponse().failed(err).m(err.message));
throw err;
}
};

0 comments on commit 5e2cae3

Please sign in to comment.