Mercurial > hg
changeset 10529:076e8a8000a3 stable
hgcia: report RPC errors
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 22 Feb 2010 23:30:01 -0800 |
parents | 9c0ba837dc65 |
children | ed87b6c60e0b eddf859343de |
files | hgext/hgcia.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/hgcia.py Tue Feb 23 06:42:10 2010 +0100 +++ b/hgext/hgcia.py Mon Feb 22 23:30:01 2010 -0800 @@ -197,7 +197,10 @@ def sendrpc(self, msg): srv = xmlrpclib.Server(self.ciaurl) - srv.hub.deliver(msg) + res = srv.hub.deliver(msg) + if res is not True: + raise util.Abort(_('%s returned an error: %s') % + (self.ciaurl, res)) def sendemail(self, address, data): p = email.Parser.Parser()