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
…1505)

Co-authored-by: Lyndon D'Arcy <LyndonDArcy@fico.com>
  • Loading branch information
logworthy and Lyndon D'Arcy committed May 12, 2021
1 parent a6113ea commit 210cefb
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 210cefb

Please sign in to comment.