Skip to content

Commit d0872c8

Browse files
betegonclaude
andcommitted
fix(init): display error before throwing WizardError in team resolution
WizardError defaults rendered=true, so the framework error handler suppresses output. Every other throw site calls log.error() + cancel() first to display the message. The new catch block was missing this, which would silently swallow the error. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 67f963c commit d0872c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/init/wizard-runner.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ async function resolvePreSpinnerOptions(
532532
if (err instanceof WizardCancelledError) {
533533
return null;
534534
}
535+
log.error(errorMessage(err));
536+
cancel("Setup failed.");
535537
throw new WizardError(errorMessage(err));
536538
}
537539
}

0 commit comments

Comments
 (0)