Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_mod.py @ 3358:818598f5bc8b
Add better error message for bad commands
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 11 Oct 2006 16:50:17 -0700 |
parents | c10eacad7171 |
children | 41741218504d |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Wed Oct 11 16:49:53 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Wed Oct 11 16:50:17 2006 -0700 @@ -767,7 +767,7 @@ if method: method(req) else: - req.write(self.t("error")) + req.write(self.t("error", error='No such method: ' + cmd)) def changectx(self, req): if req.form.has_key('node'):