equal
deleted
inserted
replaced
13 from .common import ( |
13 from .common import ( |
14 HTTP_OK, |
14 HTTP_OK, |
15 ) |
15 ) |
16 |
16 |
17 from .. import ( |
17 from .. import ( |
|
18 error, |
18 util, |
19 util, |
19 wireproto, |
20 wireproto, |
20 ) |
21 ) |
21 stringio = util.stringio |
22 stringio = util.stringio |
22 |
23 |
197 return [] |
198 return [] |
198 elif isinstance(rsp, wireproto.ooberror): |
199 elif isinstance(rsp, wireproto.ooberror): |
199 rsp = rsp.message |
200 rsp = rsp.message |
200 req.respond(HTTP_OK, HGERRTYPE, body=rsp) |
201 req.respond(HTTP_OK, HGERRTYPE, body=rsp) |
201 return [] |
202 return [] |
|
203 raise error.ProgrammingError('hgweb.protocol internal failure', rsp) |