Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb/server.py @ 3076:4c9fcb5e3b82
If local repository is missing, make error message clearer.
Faheem Mitha suggested finding a better error message.
The nice error message is taken from cogito.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 11 Sep 2006 10:08:30 +0200 |
parents | 345bac2bc4ec |
children | 2e043c9a38a6 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -207,7 +207,8 @@ def create_server(ui, repo): hgwebobj = self.repoviewmaker(repo.__class__(repo.ui, repo.origroot)) else: - raise hg.RepoError(_('no repo found')) + raise hg.RepoError(_("There is no Mercurial repository here" + " (.hg not found)")) return hgwebobj class IPv6HTTPServer(MercurialHTTPServer):