mercurial/hgweb/hgweb_mod.py
branchstable
changeset 18855 50c922c1b514
parent 18522 36549fa712da
child 18858 f02045645d12
--- a/mercurial/hgweb/hgweb_mod.py	Mon Apr 01 18:48:12 2013 -0300
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Feb 15 18:07:14 2013 +0900
@@ -245,7 +245,8 @@
         except (error.LookupError, error.RepoLookupError), err:
             req.respond(HTTP_NOT_FOUND, ctype)
             msg = str(err)
-            if util.safehasattr(err, 'name') and 'manifest' not in msg:
+            if (util.safehasattr(err, 'name') and
+                not isinstance(err,  error.ManifestLookupError)):
                 msg = 'revision not found: %s' % err.name
             return tmpl('error', error=msg)
         except (error.RepoError, error.RevlogError), inst: