Skip to content

Commit c4bacab

Browse files
authored
feat(node): always send captured console errors as exceptions
1 parent 6cfa68d commit c4bacab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/integrations/src/captureconsole.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function consoleHandler(args: unknown[], level: string): void {
8787
}
8888

8989
const error = args.find(arg => arg instanceof Error);
90-
if (level === 'error' && error) {
90+
if (error) {
9191
captureException(error, captureContext);
9292
return;
9393
}

0 commit comments

Comments
 (0)