Skip to content

Commit 5a93302

Browse files
committed
Fix Bun
1 parent c11eb51 commit 5a93302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/node-core/src/integrations/systemError.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSystemErrorMap } from 'node:util';
1+
import * as util from 'node:util';
22
import { defineIntegration } from '@sentry/core';
33

44
const INTEGRATION_NAME = 'NodeSystemError';
@@ -22,7 +22,7 @@ function isSystemError(error: unknown): error is SystemError {
2222

2323
// Appears this is the recommended way to check for Node.js SystemError
2424
// https://github.com/nodejs/node/issues/46869
25-
return getSystemErrorMap().has(error.errno);
25+
return util.getSystemErrorMap().has(error.errno);
2626
}
2727

2828
type Options = {

0 commit comments

Comments
 (0)