Skip to content
Snippets Groups Projects
Commit 346a2bb8 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Improve pre-commit error message

parent 764a3050
No related branches found
No related tags found
1 merge request!297Ask for conda env name explicitly in bdt dev install
Pipeline #62346 passed
...@@ -89,8 +89,11 @@ def checkout(ctx, names, use_https, subfolder): ...@@ -89,8 +89,11 @@ def checkout(ctx, names, use_https, subfolder):
subprocess.check_call(["pre-commit", "install"], cwd=dest) subprocess.check_call(["pre-commit", "install"], cwd=dest)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
click.echo( click.echo(
"pre-commit installation failed. Please install pre-commit manually." "pre-commit git hook installation failed. "
"Please make sure you have pre-commit installed "
"and its binary is in the PATH."
) )
raise
# the group command must be at the end of this file for plugins to work. # the group command must be at the end of this file for plugins to work.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment