mercurial/hgweb/protocol.py
changeset 34509 e21f274cccea
parent 33821 3c91cc0c5fde
child 34510 c23fa3103925
equal deleted inserted replaced
34508:b521b3a79afd 34509:e21f274cccea
    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)