Skip to content

Commit

Permalink
fix: Handle unhandled promise rejections in bin (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner committed May 16, 2022
1 parent bcd09e5 commit 552f480
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bin.ts
@@ -1,4 +1,7 @@
#!/usr/bin/env node
import { runAuditCi } from "./audit-ci";

runAuditCi();
runAuditCi().catch((error) => {
console.error(error);
process.exit(1);
});

0 comments on commit 552f480

Please sign in to comment.