mirror of https://github.com/golang/go.git
codereview.py: improve error message when user is not a committer
R=adg, bradfitz, r CC=golang-dev https://golang.org/cl/9626045
This commit is contained in:
parent
e3a72b05f8
commit
4b2eb3f9f8
|
|
@ -1960,6 +1960,9 @@ def submit(ui, repo, *pats, **opts):
|
||||||
# Remote repository had changes we missed.
|
# Remote repository had changes we missed.
|
||||||
need_sync()
|
need_sync()
|
||||||
raise
|
raise
|
||||||
|
except urllib2.HTTPError, e:
|
||||||
|
print >>sys.stderr, "pushing to remote server failed; do you have commit permissions?"
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
real_rollback()
|
real_rollback()
|
||||||
raise
|
raise
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue