Add better error message for bad commands
authorBrendan Cully <brendan@kublai.com>
Wed, 11 Oct 2006 16:50:17 -0700
changeset 3358 818598f5bc8b
parent 3357 7cc0f49d8e5c
child 3359 41741218504d
Add better error message for bad commands
mercurial/hgweb/hgweb_mod.py
--- 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'):