diff options
author | Francesc Campoy <campoy@golang.org> | 2013-05-22 16:27:39 -0700 |
---|---|---|
committer | Francesc Campoy <campoy@golang.org> | 2013-05-22 16:27:39 -0700 |
commit | 70457ca2a3f6e4cd0b947abb4f11a93e41e5ed1b (patch) | |
tree | 9ced64a3ce0550e0a5232dfc6719db6d697ad143 /lib | |
parent | 44b67d281f97a51ef845af2d4e885d4634ecdfe5 (diff) | |
download | go-70457ca2a3f6e4cd0b947abb4f11a93e41e5ed1b.tar.gz |
codereview.py: improve error message when user is not a committer
R=adg, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/9626045
Diffstat (limited to 'lib')
-rw-r--r-- | lib/codereview/codereview.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index f839263c5..f8edbcde0 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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 |