Show an error instead of a stack trace when running in a directory without a git repo