##// END OF EJS Templates
bundle2: fix names for error part handler...
Pierre-Yves David -
r24741:bb67e523 default
parent child Browse files
Show More
@@ -1158,12 +1158,12 b' def handlereplycaps(op, inpart):'
1158 op.reply = bundle20(op.ui, caps)
1158 op.reply = bundle20(op.ui, caps)
1159
1159
1160 @parthandler('error:abort', ('message', 'hint'))
1160 @parthandler('error:abort', ('message', 'hint'))
1161 def handlereplycaps(op, inpart):
1161 def handleerrorabort(op, inpart):
1162 """Used to transmit abort error over the wire"""
1162 """Used to transmit abort error over the wire"""
1163 raise util.Abort(inpart.params['message'], hint=inpart.params.get('hint'))
1163 raise util.Abort(inpart.params['message'], hint=inpart.params.get('hint'))
1164
1164
1165 @parthandler('error:unsupportedcontent', ('parttype', 'params'))
1165 @parthandler('error:unsupportedcontent', ('parttype', 'params'))
1166 def handlereplycaps(op, inpart):
1166 def handleerrorunsupportedcontent(op, inpart):
1167 """Used to transmit unknown content error over the wire"""
1167 """Used to transmit unknown content error over the wire"""
1168 kwargs = {}
1168 kwargs = {}
1169 parttype = inpart.params.get('parttype')
1169 parttype = inpart.params.get('parttype')
@@ -1176,7 +1176,7 b' def handlereplycaps(op, inpart):'
1176 raise error.UnsupportedPartError(**kwargs)
1176 raise error.UnsupportedPartError(**kwargs)
1177
1177
1178 @parthandler('error:pushraced', ('message',))
1178 @parthandler('error:pushraced', ('message',))
1179 def handlereplycaps(op, inpart):
1179 def handleerrorpushraced(op, inpart):
1180 """Used to transmit push race error over the wire"""
1180 """Used to transmit push race error over the wire"""
1181 raise error.ResponseError(_('push failed:'), inpart.params['message'])
1181 raise error.ResponseError(_('push failed:'), inpart.params['message'])
1182
1182
General Comments 0
You need to be logged in to leave comments. Login now