Skip to content

Commit

Permalink
Log the error message when git clone fails, not just the return code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyndon D'Arcy authored and Lyndon D'Arcy committed Feb 23, 2021
1 parent 52dd185 commit a5727b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookiecutter/vcs.py
Expand Up @@ -115,6 +115,7 @@ def clone(repo_url, checkout=None, clone_to_dir='.', no_input=False):
'The {} branch of repository {} could not found, '
'have you made a typo?'.format(checkout, repo_url)
)
logger.error('git clone failed with error: %s', output)
raise

return repo_dir

0 comments on commit a5727b1

Please sign in to comment.