diff options
author | Aravind Vasudevan <aravindvasudev@google.com> | 2023-10-06 00:40:25 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-06 18:21:45 +0000 |
commit | 2844a5f3cc81ffe2b749e574bdeb61809deab5b9 (patch) | |
tree | f57cc7f5e9420b47ed4c8506e4d2c3097ac49af5 /project.py | |
parent | 47944bbe2ea69009c0da78573f6536ad2c77f026 (diff) | |
download | git-repo-2844a5f3cc81ffe2b749e574bdeb61809deab5b9.tar.gz |
git_command: Augment underlying git errors with suggestions
This change appends suggestions to the underlying git error to make the
error slightly more actionable.
DD: go/improve-repo-error-reporting & go/tee-repo-stderr
Bug: b/292704435
Change-Id: I2bf8bea5fca42c6a9acd2fadc70f58f22456e027
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/387774
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
Reviewed-by: Jason Chang <jasonnc@google.com>
Tested-by: Aravind Vasudevan <aravindvasudev@google.com>
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1135,7 +1135,7 @@ class Project(object): | |||
1135 | url = branch.remote.ReviewUrl(self.UserEmail, validate_certs) | 1135 | url = branch.remote.ReviewUrl(self.UserEmail, validate_certs) |
1136 | if url is None: | 1136 | if url is None: |
1137 | raise UploadError("review not configured", project=self.name) | 1137 | raise UploadError("review not configured", project=self.name) |
1138 | cmd = ["push"] | 1138 | cmd = ["push", "--progress"] |
1139 | if dryrun: | 1139 | if dryrun: |
1140 | cmd.append("-n") | 1140 | cmd.append("-n") |
1141 | 1141 | ||