Skip to content

Commit

Permalink
Log the error message when git clone fails, not just the return code (c…
Browse files Browse the repository at this point in the history
…ookiecutter#1505)

Co-authored-by: Lyndon D'Arcy <LyndonDArcy@fico.com>
  • Loading branch information
2 people authored and cagonza6 committed Jun 16, 2021
1 parent 40dac4b commit 2738957
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 2738957

Please sign in to comment.