Skip to content

Commit ab66a0b

Browse files
committed
ref(solid): Add mechanism to error captured by withSentryErrorBoundary
1 parent 47342f3 commit ab66a0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/solid/src/errorboundary.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ export function withSentryErrorBoundary(ErrorBoundary: Component<ErrorBoundaryPr
1717
const [local, others] = splitProps(props, ['fallback']);
1818

1919
const fallback = (error: unknown, reset: () => void): JSX.Element => {
20-
captureException(error);
20+
captureException(error, {
21+
mechanism: {
22+
handled: true, // handled because user has to provide a fallback
23+
type: 'solid.error-boundary',
24+
},
25+
});
2126

2227
const f = local.fallback;
2328
return typeof f === 'function' ? f(error, reset) : f;

0 commit comments

Comments
 (0)