Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3357:7cc0f49d8e5c | 3358:818598f5bc8b |
---|---|
765 | 765 |
766 method = getattr(self, 'do_' + cmd, None) | 766 method = getattr(self, 'do_' + cmd, None) |
767 if method: | 767 if method: |
768 method(req) | 768 method(req) |
769 else: | 769 else: |
770 req.write(self.t("error")) | 770 req.write(self.t("error", error='No such method: ' + cmd)) |
771 | 771 |
772 def changectx(self, req): | 772 def changectx(self, req): |
773 if req.form.has_key('node'): | 773 if req.form.has_key('node'): |
774 changeid = req.form['node'][0] | 774 changeid = req.form['node'][0] |
775 elif req.form.has_key('manifest'): | 775 elif req.form.has_key('manifest'): |