We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f7576 commit 3213f2fCopy full SHA for 3213f2f
src/cli.js
@@ -46,18 +46,7 @@ function asyncAction (cmd) {
46
return function () {
47
const args = [...arguments];
48
(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
+ await cmd.apply(null, args);
61
})();
62
};
63
}
0 commit comments