Skip to content

Commit 54bb9ab

Browse files
Update packages/react-native-node-api-modules/src/node/path-utils.ts
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>
1 parent 6af082f commit 54bb9ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native-node-api-modules/src/node/path-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export function isNodeApiModule(modulePath: string): boolean {
5656
if (!isReadableSync(filePath)) {
5757
throw new Error(`Found an unreadable module ${fileName}`);
5858
}
59-
} catch (e) {
60-
throw new Error(`Found an unreadable module ${fileName}: ${e}`);
59+
} catch (err) {
60+
throw new Error(`Found an unreadable module ${fileName}`, { cause: err });
6161
}
6262
return true;
6363
});

0 commit comments

Comments
 (0)