Skip to content

Commit d7e2d0a

Browse files
committed
perf(cli): exit on error
Signed-off-by: mateonunez <mateonunez95@gmail.com>
1 parent 6eb471b commit d7e2d0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ function cli() {
3333
process.stdout.write(`${output}\n`);
3434
}
3535

36-
cli();
36+
try {
37+
cli();
38+
} catch (error) {
39+
process.stderr.write(`${error.message}\n`);
40+
process.exit(1);
41+
}

0 commit comments

Comments
 (0)