Skip to content

Commit 2bc7b48

Browse files
committed
fix: nit
1 parent 692c3b1 commit 2bc7b48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commitizen/commands/init.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ def __call__(self) -> None:
168168
yaml.safe_dump(config_data, stream=config_file)
169169

170170
if not self.project_info.is_pre_commit_installed:
171-
raise InitFailedError("Failed to install pre-commit hook.")
171+
raise InitFailedError(
172+
"Failed to install pre-commit hook.\n"
173+
"pre-commit is not installed in current environment."
174+
)
172175

173176
cmd_str = "pre-commit install " + " ".join(
174177
f"--hook-type {ty}" for ty in hook_types

0 commit comments

Comments
 (0)