Skip to content

Commit b2aaa94

Browse files
committed
fix: 🐛 error handling adjustment
1 parent 636204c commit b2aaa94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ const main = async () => {
4343

4444
await program.parseAsync([process.argv[0], process.argv[1], chosenCommand]);
4545
} catch (e) {
46+
handleError(e);
4647
if (e instanceof Error) {
4748
if (e.message.includes("User force closed the prompt")) {
4849
process.exit(0);
4950
}
5051
}
51-
handleError(e);
5252
process.exit(1);
5353
}
5454
};

0 commit comments

Comments
 (0)