##// END OF EJS Templates
http: report unexpected unparsable push responses (issue2777)
Matt Mackall -
r14641:f2789767 default
parent child Browse files
Show More
@@ -191,7 +191,10 b' class httprepository(wireproto.wirerepos'
191 191 try:
192 192 try:
193 193 r = self._call(cmd, data=fp, headers=headers, **args)
194 return r.split('\n', 1)
194 vals = r.split('\n', 1)
195 if len(vals) < 2:
196 raise error.ResponseError(_("unexpected response:"), d)
197 return vals
195 198 except socket.error, err:
196 199 if err.args[0] in (errno.ECONNRESET, errno.EPIPE):
197 200 raise util.Abort(_('push failed: %s') % err.args[1])
General Comments 0
You need to be logged in to leave comments. Login now