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

Make DefaultProblem implement the error interface #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flynnguy
Copy link

@flynnguy flynnguy commented Feb 3, 2017

I added the Error() function to satisfy the error interface. Error string should be <Title> (Status) - <Detail>

I also had to modify badProblemType and badProblemTitle structs in the tests to add an Error() function. They currently return an empty string because those tests don't use it.

@ptman
Copy link

ptman commented Jul 24, 2019

This could be very useful. I did something similar myself before finding this library.

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

Successfully merging this pull request may close these issues.

2 participants