Clarify/correct error message

The error also occurs if the `git` utility isn't available.
This commit is contained in:
Sander Maijers 2016-08-16 15:47:17 +02:00
parent ea05189c28
commit 1d4a332e04
No known key found for this signature in database
GPG key ID: 2E974A73F1B0F2F7

View file

@ -20,7 +20,8 @@ def get_root():
return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip() return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip()
except CalledProcessError: except CalledProcessError:
raise FatalError( 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?'
) )