Skip to content

Commit

Permalink
chore(init): remove error when Git initialisation failed (#2215)
Browse files Browse the repository at this point in the history
* chore(init): remove error when command failed

* chore: log error message
  • Loading branch information
szymonrybczak authored Dec 20, 2023
1 parent a4417a1 commit 49426fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cli/src/commands/init/createGitRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ 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(
'Could not create an empty Git repository, error: ',
e as string,
);
logger.debug(e as string);
}
};

Expand Down

0 comments on commit 49426fd

Please sign in to comment.