Skip to content

Commit c4a5090

Browse files
fix: handle unhandled errors in main function
1 parent 2d0e1dc commit c4a5090

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/get-modules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,4 +565,7 @@ async function main() {
565565
}
566566
}
567567

568-
await main();
568+
await main().catch((error) => {
569+
console.error("Unhandled error in main:", error);
570+
process.exit(1);
571+
});

0 commit comments

Comments
 (0)