Skip to content

Commit e55922c

Browse files
authored
Merge pull request #133 from sipgate/IQEA-1124-BridgeErrors-werden-als-loggedIntegrationEntities-in-der-DB-abgespeichert
Iqea 1124 bridge errors werden als logged integration entities in der db abgespeichert
2 parents 7e6da2f + 5f91bbc commit e55922c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sipgate/integration-bridge",
3-
"version": "1.0.28",
3+
"version": "1.0.29",
44
"description": "sipgate Integration Bridge Framework",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/middlewares/error-handler.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function errorHandlerMiddleware(
88
// eslint-disable-next-line @typescript-eslint/no-unused-vars
99
next: NextFunction,
1010
): void {
11-
if (error instanceof ServerError) {
11+
if (error instanceof ServerError && error.status >= 400) {
1212
res.status(error.status).send(error.message);
1313
return;
1414
}

0 commit comments

Comments
 (0)