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

No default text/plain formatters for builtin errors #622

Closed
jrmithdobbs opened this issue Nov 18, 2013 · 2 comments
Closed

No default text/plain formatters for builtin errors #622

jrmithdobbs opened this issue Nov 18, 2013 · 2 comments
Labels

Comments

@jrmithdobbs
Copy link

Accept: text/plain.*

Does not throw useful errors for 404 etc.

text/html and application/json have these default handlers.

Is there simple boilerplate that could be added to work around this for an app using json and plaintext formats?

@gregwebs
Copy link
Member

Looks like text/plain is missing here:
https://github.com/yesodweb/yesod/blob/master/yesod-core/Yesod/Core/Class/Yesod.hs#L422

Give a shot at adding it if you feel like. It seems that what is in the JSON probably works as plain text, but we would lead with what is in the 'message` key.

@StevenXL
Copy link
Member

Addressed in #1520.

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

No branches or pull requests

4 participants