Skip to content

Commit 0d34d71

Browse files
cs-rajclaude
andcommitted
fix(bootstrap): stop spinner before printing error so message is visible
Moving cliux.loader() (spinner stop) out of finally and into catch before cliux.error() prevents the spinner's carriage-return from wiping the error line. Success path stops the spinner inline after getLatest resolves. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2ca0f14 commit 0d34d71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/contentstack-bootstrap/src/bootstrap

‎packages/contentstack-bootstrap/src/bootstrap/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ export default class Bootstrap {
7171

7272
try {
7373
await this.ghClient.getLatest(this.cloneDirectory);
74+
cliux.loader();
7475
} catch (error) {
76+
cliux.loader();
7577
if (error instanceof GithubError) {
7678
if (error.status === 404) {
7779
cliux.error(messageHandler.parse('CLI_BOOTSTRAP_REPO_NOT_FOUND', this.appConfig.source));
7880
}
7981
}
8082
throw error;
81-
} finally {
82-
cliux.loader();
8383
}
8484

8585
// seed plugin start

0 commit comments

Comments
 (0)