mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Clarify/correct error message
The error also occurs if the `git` utility isn't available.
This commit is contained in:
parent
ea05189c28
commit
1d4a332e04
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@ def get_root():
|
|||
return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip()
|
||||
except CalledProcessError:
|
||||
raise FatalError(
|
||||
'Called from outside of the gits. Please cd to a git repository.'
|
||||
'git failed. Is it installed, and are you in a Git repository '
|
||||
'directory?'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue