Skip to content

Commit f23755e

Browse files
committed
fix: Ensure ignoreErrors only applies to error events
1 parent 0e3552d commit f23755e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/integrations/inboundfilters.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export function _shouldDropEvent(event: Event, options: Partial<InboundFiltersOp
103103
}
104104

105105
function _isIgnoredError(event: Event, ignoreErrors?: Array<string | RegExp>): boolean {
106-
if (!ignoreErrors || !ignoreErrors.length) {
106+
// If event.type, this is not an error
107+
if (event.type || !ignoreErrors || !ignoreErrors.length) {
107108
return false;
108109
}
109110

0 commit comments

Comments
 (0)