http: fix variable name in unexpected response message
authorMatt Mackall <mpm@selenic.com>
Thu, 16 Jun 2011 14:33:06 -0500
changeset 14648 ba3c36cea66e
parent 14647 2e9f379de0ac
child 14649 a6a8809c6e33
http: fix variable name in unexpected response message
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Fri Jun 03 17:27:41 2011 +0300
+++ b/mercurial/httprepo.py	Thu Jun 16 14:33:06 2011 -0500
@@ -193,7 +193,7 @@
                 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):