http: fix variable name in unexpected response message

This commit is contained in:
Matt Mackall 2011-06-16 14:33:06 -05:00
parent 40027596a8
commit 6e8d242aa0

View File

@ -193,7 +193,7 @@ class httprepository(wireproto.wirerepository):
r = self._call(cmd, data=fp, headers=headers, **args)
vals = r.split('\n', 1)
if len(vals) < 2:
raise error.ResponseError(_("unexpected response:"), d)
raise error.ResponseError(_("unexpected response:"), r)
return vals
except socket.error, err:
if err.args[0] in (errno.ECONNRESET, errno.EPIPE):