sshrepo: fix bug in error formatting.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Thu, 15 Jun 2006 15:36:23 -0700
changeset 2437 2f5dbc24874a
parent 2436 f910b91dd912
child 2438 a765f853439d
sshrepo: fix bug in error formatting.
mercurial/sshrepo.py
--- a/mercurial/sshrepo.py	Thu Jun 15 13:27:57 2006 -0700
+++ b/mercurial/sshrepo.py	Thu Jun 15 15:36:23 2006 -0700
@@ -144,7 +144,7 @@
     def addchangegroup(self, cg, source):
         d = self.call("addchangegroup")
         if d:
-            raise hg.RepoError(_("push refused: %s"), d)
+            raise hg.RepoError(_("push refused: %s") % d)
 
         while 1:
             d = cg.read(4096)