Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through error messages to templates #56

Merged
merged 2 commits into from
Mar 14, 2022

Conversation

nottrobin
Copy link
Contributor

@nottrobin nottrobin commented Mar 11, 2022

This is to support canonical/ubuntu.com#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 canonical/ubuntu.com#11343 which installs from this branch.

Copy link
Contributor

@mtruj013 mtruj013 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants