Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f11338c

Browse files
authored
Merge pull request #398 from sanmai-NL/clarify_git_err_msg
Clarify/correct error message
2 parents b6bcc8a + 1d4a332 commit f11338c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pre_commit/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def get_root():
2020
return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip()
2121
except CalledProcessError:
2222
raise FatalError(
23-
'Called from outside of the gits. Please cd to a git repository.'
23+
'git failed. Is it installed, and are you in a Git repository '
24+
'directory?'
2425
)
2526

2627

0 commit comments

Comments
 (0)