Merge branch 'master' of github.com:mynodebtc/mynode

This commit is contained in:
Taylor Helsper 2019-11-15 23:09:28 -06:00
commit 0325821c01
2 changed files with 21 additions and 5 deletions

View File

@ -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):

View File

@ -57,11 +57,6 @@ table,
border-color: #eee;
}
.settings_input {
color: white;
background: #eee;
}
.main_page_warning_block,
.upgrade_ad_main_page {
color: #eee;