changeset 2437:2f5dbc24874a

sshrepo: fix bug in error formatting.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 15 Jun 2006 15:36:23 -0700
parents f910b91dd912
children a765f853439d
files mercurial/sshrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)