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
+++ b/mercurial/sshrepo.py
@@ -144,7 +144,7 @@ class sshrepository(remoterepository):
     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)