Remove extra kwargs and put the text in the template since all error pages will show the same text in MVP

This commit is contained in:
leigh-mil
2019-10-01 13:58:29 -04:00
parent b990a59dc9
commit 7db38ede59
2 changed files with 4 additions and 19 deletions

View File

@@ -26,25 +26,10 @@ def notify(e, message, code):
current_app.notification_sender.send(message)
def handle_error(
e,
message=translate("errors.not_found"),
code=404,
submessage=translate("errors.not_found_sub"),
more_info=translate("common.lorem"),
):
def handle_error(e, message=translate("errors.not_found"), code=404):
log_error(e)
notify(e, message, code)
return (
render_template(
"error.html",
message=message,
code=code,
submessage=submessage,
more_info=more_info,
),
code,
)
return (render_template("error.html", message=message, code=code), code)
def make_error_pages(app):