Skip to content

Commit 0af3996

Browse files
committed
Set exit code on exceptions thrown in the CLI
1 parent 353e209 commit 0af3996

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ts/create-kpt-functions/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/create-kpt-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-kpt-functions",
3-
"version": "0.16.3",
3+
"version": "0.16.4",
44
"description": "KPT functions CLI",
55
"author": "KPT Authors",
66
"license": "Apache-2.0",

ts/create-kpt-functions/src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,6 @@ async function main() {
124124
await main();
125125
} catch (e) {
126126
console.error(e);
127+
process.exitCode = 1;
127128
}
128129
})();

0 commit comments

Comments
 (0)