Skip to content

Commit 9e585e7

Browse files
committed
Merge branch 'develop' into prepare-release/8.28.0
2 parents e8ed7c2 + 9b8f9ea commit 9e585e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ jobs:
908908
'nestjs-basic',
909909
'nestjs-distributed-tracing',
910910
'nestjs-with-submodules',
911+
'nestjs-with-submodules-decorator',
911912
'nestjs-graphql',
912913
'node-exports-test-app',
913914
'node-koa',

packages/nestjs/src/decorators/with-sentry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export function WithSentry() {
1212
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1313
descriptor.value = function (exception: unknown, host: unknown, ...args: any[]) {
1414
if (isExpectedError(exception)) {
15-
return originalCatch.apply(this, args);
15+
return originalCatch.apply(this, [exception, host, ...args]);
1616
}
1717

1818
captureException(exception);
19-
return originalCatch.apply(this, args);
19+
return originalCatch.apply(this, [exception, host, ...args]);
2020
};
2121

2222
return descriptor;

0 commit comments

Comments
 (0)