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

Generalize stack formatting in errfmt.Print #87

Merged
merged 3 commits into from
Mar 14, 2022

Conversation

bluekeyes
Copy link
Member

Instead of special-casing hatpear.PanicError in the zerolog error
formatter, detect the interface it implements and format the stack trace
directly. This allows other packages to implement the same interface and
get the same formatting benefits.

Instead of special-casing hatpear.PanicError in the zerolog error
formatter, detect the interface it implements and format the stack trace
directly. This allows other packages to implement the same interface and
get the same formatting benefits.
pkg/errfmt/errfmt.go Outdated Show resolved Hide resolved
bluekeyes and others added 2 commits March 14, 2022 09:34
Co-authored-by: James Toyer <jamestoyer@users.noreply.github.com>
@bluekeyes bluekeyes merged commit 74e8fa9 into develop Mar 14, 2022
@bluekeyes bluekeyes deleted the bkeyes/general-errfmt branch March 14, 2022 19:24
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