From a5727b115e631f61aadd2ecb52de8dd0421dd598 Mon Sep 17 00:00:00 2001 From: Lyndon D'Arcy Date: Tue, 23 Feb 2021 11:21:40 +1100 Subject: [PATCH] Log the error message when git clone fails, not just the return code --- cookiecutter/vcs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cookiecutter/vcs.py b/cookiecutter/vcs.py index d9af1311c..4a846876e 100644 --- a/cookiecutter/vcs.py +++ b/cookiecutter/vcs.py @@ -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