We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692c3b1 commit 2bc7b48Copy full SHA for 2bc7b48
commitizen/commands/init.py
@@ -168,7 +168,10 @@ def __call__(self) -> None:
168
yaml.safe_dump(config_data, stream=config_file)
169
170
if not self.project_info.is_pre_commit_installed:
171
- raise InitFailedError("Failed to install pre-commit hook.")
+ raise InitFailedError(
172
+ "Failed to install pre-commit hook.\n"
173
+ "pre-commit is not installed in current environment."
174
+ )
175
176
cmd_str = "pre-commit install " + " ".join(
177
f"--hook-type {ty}" for ty in hook_types
0 commit comments