Skip to content

Commit

Permalink
Set exit code on exceptions thrown in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfarzan committed Feb 5, 2020
1 parent 353e209 commit 0af3996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts/create-kpt-functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ts/create-kpt-functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-kpt-functions",
"version": "0.16.3",
"version": "0.16.4",
"description": "KPT functions CLI",
"author": "KPT Authors",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions ts/create-kpt-functions/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,6 @@ async function main() {
await main();
} catch (e) {
console.error(e);
process.exitCode = 1;
}
})();

0 comments on commit 0af3996

Please sign in to comment.