Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CLI): throw error on failure in sb init #18816

Merged
merged 1 commit into from Jul 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion code/lib/cli/src/generate.ts
Expand Up @@ -44,7 +44,12 @@ program
.option('-y --yes', 'Answer yes to all prompts')
.option('-b --builder <builder>', 'Builder library')
.option('-l --linkable', 'Prepare installation for link (contributor helper)')
.action((options) => initiate(options, pkg));
.action((options) =>
initiate(options, pkg).catch((err) => {
logger.error(err);
process.exit(1);
})
);

program
.command('add <addon>')
Expand Down