Skip to content

Commit

Permalink
codereview.py: improve error message when user is not a committer
Browse files Browse the repository at this point in the history
R=adg, bradfitz, r
CC=golang-dev
https://golang.org/cl/9626045
  • Loading branch information
campoy committed May 22, 2013
1 parent e3a72b0 commit 4b2eb3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/codereview/codereview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,9 @@ def submit(ui, repo, *pats, **opts):
# Remote repository had changes we missed.
need_sync()
raise
except urllib2.HTTPError, e:
print >>sys.stderr, "pushing to remote server failed; do you have commit permissions?"
raise
except:
real_rollback()
raise
Expand Down

0 comments on commit 4b2eb3f

Please sign in to comment.