Show More
@@ -0,0 +1,15 b'' | |||||
|
1 | #header# | |||
|
2 | <title>Mercurial Error</title> | |||
|
3 | </head> | |||
|
4 | <body> | |||
|
5 | ||||
|
6 | <h2>Mercurial Error</h2> | |||
|
7 | ||||
|
8 | <p> | |||
|
9 | An error occured while processing your request: | |||
|
10 | </p> | |||
|
11 | <p> | |||
|
12 | #error|escape# | |||
|
13 | </p> | |||
|
14 | ||||
|
15 | #footer# |
@@ -1013,7 +1013,12 b' class hgwebdir:' | |||||
1013 | if virtual: |
|
1013 | if virtual: | |
1014 | real = dict(self.repos).get(virtual) |
|
1014 | real = dict(self.repos).get(virtual) | |
1015 | if real: |
|
1015 | if real: | |
1016 |
|
|
1016 | try: | |
|
1017 | hgweb(real).run(req) | |||
|
1018 | except IOError, inst: | |||
|
1019 | req.write(tmpl("error", error=inst.strerror)) | |||
|
1020 | except hg.RepoError, inst: | |||
|
1021 | req.write(tmpl("error", error=str(inst))) | |||
1017 | else: |
|
1022 | else: | |
1018 | req.write(tmpl("notfound", repo=virtual)) |
|
1023 | req.write(tmpl("notfound", repo=virtual)) | |
1019 | else: |
|
1024 | else: |
@@ -39,3 +39,4 b' indexentry = "<tr class="parity#parity#"' | |||||
39 | index = index.tmpl |
|
39 | index = index.tmpl | |
40 | archiveentry = "<a href="?ca=#node|short#;type=#type#">#type#</a> " |
|
40 | archiveentry = "<a href="?ca=#node|short#;type=#type#">#type#</a> " | |
41 | notfound = notfound.tmpl |
|
41 | notfound = notfound.tmpl | |
|
42 | error = error.tmpl |
General Comments 0
You need to be logged in to leave comments.
Login now