changeset 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 7cc0f49d8e5c
children 41741218504d
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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'):