mercurial/hgweb/hgweb_mod.py
changeset 18858 f02045645d12
parent 18826 35fb2ef52a39
parent 18855 50c922c1b514
child 19488 60e060f4faa9
--- a/mercurial/hgweb/hgweb_mod.py	Thu Mar 28 18:27:19 2013 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Apr 02 01:15:31 2013 -0500
@@ -250,7 +250,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: