diff --git a/cps/error_handler.py b/cps/error_handler.py index 373a1434..37b7500e 100644 --- a/cps/error_handler.py +++ b/cps/error_handler.py @@ -35,6 +35,7 @@ def error_http(error): error_code="Error {0}".format(error.code), error_name=error.name, issue=False, + unconfigured=not config.db_configured, instance=config.config_calibre_web_title ), error.code @@ -44,6 +45,7 @@ def internal_error(error): error_code="Internal Server Error", error_name=str(error), issue=True, + unconfigured=False, error_stack=traceback.format_exc().split("\n"), instance=config.config_calibre_web_title ), 500 diff --git a/cps/templates/http_error.html b/cps/templates/http_error.html index 042ed1c5..eb628a5f 100644 --- a/cps/templates/http_error.html +++ b/cps/templates/http_error.html @@ -27,6 +27,9 @@