From 403f13a16b62a890c08d9d36bc0916aecb7165de Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Mon, 18 Dec 2023 16:03:18 +0100 Subject: [PATCH 1/2] chore(init): remove error when command failed --- packages/cli/src/commands/init/createGitRepository.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cli/src/commands/init/createGitRepository.ts b/packages/cli/src/commands/init/createGitRepository.ts index f3b193b34..426bfca62 100644 --- a/packages/cli/src/commands/init/createGitRepository.ts +++ b/packages/cli/src/commands/init/createGitRepository.ts @@ -56,9 +56,7 @@ const createGitRepository = async (folder: string) => { ); loader.succeed(); } catch (e) { - loader.fail( - 'Could not create an empty Git repository, see debug logs with --verbose', - ); + loader.stop(); logger.debug(e as string); } }; From da4ef6897b46d243009598427d21c85cd25ca2d0 Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Mon, 18 Dec 2023 20:30:54 +0100 Subject: [PATCH 2/2] chore: log error message --- packages/cli/src/commands/init/createGitRepository.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/init/createGitRepository.ts b/packages/cli/src/commands/init/createGitRepository.ts index 426bfca62..c35a0afaa 100644 --- a/packages/cli/src/commands/init/createGitRepository.ts +++ b/packages/cli/src/commands/init/createGitRepository.ts @@ -57,7 +57,10 @@ const createGitRepository = async (folder: string) => { loader.succeed(); } catch (e) { loader.stop(); - logger.debug(e as string); + logger.debug( + 'Could not create an empty Git repository, error: ', + e as string, + ); } };