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

feat: add ErrorWithDetail #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add ErrorWithDetail #228

wants to merge 1 commit into from

Conversation

dylanhitt
Copy link
Collaborator

Closes #225

Adds ErrorWithDetail interface to allow for response of detail. This is similar to the older with Info. The motivation for this is the fact that we use the detail option in the slog.Error in the default error handler as well as in the HTTPError.Error() func. Maybe we should default into something as well in the case where the user doesn't supply it.

If this is acceptable I will update the docs now as well.

@dylanhitt
Copy link
Collaborator Author

@EwenQuim should I update the docs?

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.

Add Unwrap to ErrorWithStatus interface
1 participant