show a prettier error page when the hub is offline
This commit is contained in:
parent
4ae00ba556
commit
cb39845ed3
1 changed files with 5 additions and 0 deletions
|
|
@ -342,6 +342,11 @@ class Dispatcher(object):
|
||||||
values['tb_long'] = tb_long
|
values['tb_long'] = tb_long
|
||||||
else:
|
else:
|
||||||
values['tb_long'] = "Full tracebacks disabled"
|
values['tb_long'] = "Full tracebacks disabled"
|
||||||
|
# default these koji values to false so the _genHTML doesn't try to look
|
||||||
|
# them up (which will fail badly if the hub is offline)
|
||||||
|
# FIXME - we need a better fix for this
|
||||||
|
environ['koji.values'].setdefault('mavenEnabled', False)
|
||||||
|
environ['koji.values'].setdefault('winEnabled', False)
|
||||||
result = _genHTML(environ, 'error.chtml')
|
result = _genHTML(environ, 'error.chtml')
|
||||||
headers = [
|
headers = [
|
||||||
('Allow', 'GET, POST, HEAD'),
|
('Allow', 'GET, POST, HEAD'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue