diff --git a/rootfs/standard/var/www/mynode/mynode.py b/rootfs/standard/var/www/mynode/mynode.py index 15bcd00e..1792f239 100644 --- a/rootfs/standard/var/www/mynode/mynode.py +++ b/rootfs/standard/var/www/mynode/mynode.py @@ -488,6 +488,27 @@ def page_help(): templateData = {"ui_settings": read_ui_settings()} return render_template('help.html', **templateData) +## Error handlers +@app.errorhandler(404) +def not_found_error(error): + templateData = { + "title": "myNode 404", + "header_text": "Page not found", + "subheader_text": "Click on the mynode logo reach the home page", + "ui_settings": read_ui_settings() + } + return render_template('state.html', **templateData), 404 + +@app.errorhandler(500) +def internal_error(error): + templateData = { + "title": "myNode 500", + "header_text": "Internal server error", + "subheader_text": "If you were manually upgrading myNode, redo it.", + "ui_settings": read_ui_settings() + } + return render_template('state.html', **templateData), 500 + # Disable browser caching @app.after_request def set_response_headers(response): diff --git a/rootfs/standard/var/www/mynode/static/css/mynode_dark.css b/rootfs/standard/var/www/mynode/static/css/mynode_dark.css index 4edcfa8e..e1d8a10d 100644 --- a/rootfs/standard/var/www/mynode/static/css/mynode_dark.css +++ b/rootfs/standard/var/www/mynode/static/css/mynode_dark.css @@ -57,11 +57,6 @@ table, border-color: #eee; } -.settings_input { - color: white; - background: #eee; -} - .main_page_warning_block, .upgrade_ad_main_page { color: #eee;