[go: up one dir, main page]

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

enable detail/stack printing for "the Go 2 proposal for error values" #259

Merged
merged 2 commits into from
Sep 12, 2019

Conversation

h12w
Copy link
Contributor
@h12w h12w commented Jul 19, 2019

This one character tweak allows the details/stack printing for the new error values defined by golang/x/xerrors as well as the new errors package in Go 1.13.

If an error is not defined as the new way, it will fall back to the traditional Error() message as usual.

Copy link
Member
@natefinch natefinch left a comment

Choose a reason for hiding this comment

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

Awesome, Thanks!

@natefinch natefinch merged commit d6f8413 into magefile:master Sep 12, 2019
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