Skip to content

Commit a970ace

Browse files
committed
Remove somewhat incorrect error handling from CLI
1 parent 14dbf61 commit a970ace

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/cli.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,7 @@ function asyncAction (cmd) {
4646
return function () {
4747
const args = [...arguments];
4848
(async () => {
49-
try {
50-
await cmd.apply(null, args);
51-
}
52-
catch (e) {
53-
process.stdout.write(`(jco ${cmd.name}) `);
54-
if (typeof e === 'string') {
55-
console.error(c`{red.bold Error}: ${e}\n`);
56-
} else {
57-
console.error(e);
58-
}
59-
process.exit(1);
60-
}
49+
await cmd.apply(null, args);
6150
})();
6251
};
6352
}

0 commit comments

Comments
 (0)