From b6871899be405178e8557fd9097918143532dd8f Mon Sep 17 00:00:00 2001 From: George Engelbrecht Date: Thu, 2 Apr 2020 13:53:01 -0600 Subject: project: have clone.bundle failures print better diagnostics Bug: https://crbug.com/1061473 Change-Id: If066dc56ca575720bfb25c1a9892dbd6f4af15c6 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/261852 Tested-by: George Engelbrecht Reviewed-by: Mike Frysinger --- project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'project.py') diff --git a/project.py b/project.py index 691e0d9b..6c197017 100644 --- a/project.py +++ b/project.py @@ -2676,7 +2676,9 @@ class Project(object): # returned another error with the HTTP error code being 400 or above. # This return code only appears if -f, --fail is used. if verbose: - print('Server does not provide clone.bundle; ignoring.') + print('%s: Unable to retrieve clone.bundle; ignoring.' % self.name) + if output: + print('Curl output:\n%s', % output) return False elif curlret and not verbose and output: print('%s' % output, file=sys.stderr) -- cgit v1.2.3-54-g00ecf