mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
upload: include the project in error messages
When running upload across multiple projects, include the project in any error messages that come up. This lets users figure out where the problem might be. Change-Id: I09470c9a1b512baf910d6d97b747816d1a6f3a87 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304783 Reviewed-by: Raman Tenneti <rtenneti@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
a590e640a6
commit
3b038cecc4
@ -520,10 +520,10 @@ Gerrit Code Review: https://www.gerritcodereview.com/
|
|||||||
avail = [up_branch]
|
avail = [up_branch]
|
||||||
else:
|
else:
|
||||||
avail = None
|
avail = None
|
||||||
print('repo: error: Unable to upload branch "%s". '
|
print('repo: error: %s: Unable to upload branch "%s". '
|
||||||
'You might be able to fix the branch by running:\n'
|
'You might be able to fix the branch by running:\n'
|
||||||
' git branch --set-upstream-to m/%s' %
|
' git branch --set-upstream-to m/%s' %
|
||||||
(str(cbr), self.manifest.branch),
|
(project.relpath, str(cbr), self.manifest.branch),
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
avail = project.GetUploadableBranches(branch)
|
avail = project.GetUploadableBranches(branch)
|
||||||
|
Loading…
Reference in New Issue
Block a user