From 1d4a332e046c012f3ff5426d8b292a17673f922e Mon Sep 17 00:00:00 2001 From: Sander Maijers Date: Tue, 16 Aug 2016 15:47:17 +0200 Subject: [PATCH] Clarify/correct error message The error also occurs if the `git` utility isn't available. --- pre_commit/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pre_commit/git.py b/pre_commit/git.py index 1f16b6e0..17b42905 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -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?' )