From f99283c4c1779c03f599c76dd5aacd7304d39d4b Mon Sep 17 00:00:00 2001 From: Tommy G <7865781+tommy-gilligan@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:11:45 +1000 Subject: [PATCH] docs(bun): remove advice concerning unhandled exceptions https://github.com/oven-sh/bun/issues/5091 has been completed for some time --- packages/bun/README.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/bun/README.md b/packages/bun/README.md index 0f6f37bd6384..1867f5a0fef9 100644 --- a/packages/bun/README.md +++ b/packages/bun/README.md @@ -59,17 +59,3 @@ Sentry.captureEvent({ ], }); ``` - -It's not possible to capture unhandled exceptions, unhandled promise rejections now - Bun is working on adding support -for it. [Github Issue](https://github.com/oven-sh/bun/issues/5091) follow this issue. To report errors to Sentry, you -have to manually try-catch and call `Sentry.captureException` in the catch block. - -```ts -import * as Sentry from '@sentry/bun'; - -try { - throw new Error('test'); -} catch (e) { - Sentry.captureException(e); -} -```