canonical / canonicalwebteam.flask-base

3 stars 10 forks source link

Pass through error messages to templates #56

Closed nottrobin closed 2 years ago

nottrobin commented 2 years ago

This is to support https://github.com/canonical-web-and-design/ubuntu.com/pull/11343.

flask.abort can take a second argument, which is supposed to be the error description for the error handler. It seems like this should be passed through to the error templates if it's defined. Which is what I try to do in that PR.

QA

QA by QAing https://github.com/canonical-web-and-design/ubuntu.com/pull/11343 which installs from this branch.