Skip to content

Commit 1637986

Browse files
docs(bun): remove advice concerning unhandled exceptions (#17049)
oven-sh/bun#5091 has been completed for some time
1 parent dc9238b commit 1637986

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/bun/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,3 @@ Sentry.captureEvent({
5959
],
6060
});
6161
```
62-
63-
It's not possible to capture unhandled exceptions, unhandled promise rejections now - Bun is working on adding support
64-
for it. [Github Issue](https://github.com/oven-sh/bun/issues/5091) follow this issue. To report errors to Sentry, you
65-
have to manually try-catch and call `Sentry.captureException` in the catch block.
66-
67-
```ts
68-
import * as Sentry from '@sentry/bun';
69-
70-
try {
71-
throw new Error('test');
72-
} catch (e) {
73-
Sentry.captureException(e);
74-
}
75-
```

0 commit comments

Comments
 (0)