summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Engelbrecht <engeg@google.com>2020-04-02 13:53:01 -0600
committerMike Frysinger <vapier@google.com>2020-04-15 06:52:52 +0000
commitb6871899be405178e8557fd9097918143532dd8f (patch)
tree2f0c10c4f4cb2dd594e7c9561564ce6f300ebadb
parent8e0fe1920eee959ad14225ad2327793371be05d1 (diff)
downloadgit-repo-b6871899be405178e8557fd9097918143532dd8f.tar.gz
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 <engeg@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
-rw-r--r--project.py4
1 files changed, 3 insertions, 1 deletions
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):
2676 # returned another error with the HTTP error code being 400 or above. 2676 # returned another error with the HTTP error code being 400 or above.
2677 # This return code only appears if -f, --fail is used. 2677 # This return code only appears if -f, --fail is used.
2678 if verbose: 2678 if verbose:
2679 print('Server does not provide clone.bundle; ignoring.') 2679 print('%s: Unable to retrieve clone.bundle; ignoring.' % self.name)
2680 if output:
2681 print('Curl output:\n%s', % output)
2680 return False 2682 return False
2681 elif curlret and not verbose and output: 2683 elif curlret and not verbose and output:
2682 print('%s' % output, file=sys.stderr) 2684 print('%s' % output, file=sys.stderr)