Skip to content

Commit 04301b7

Browse files
committed
feat(integrations): always capture console Error as exception regardless of level
1 parent 6cfa68d commit 04301b7

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)