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

Print errors using %+v #17

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Print errors using %+v #17

merged 2 commits into from
Aug 9, 2024

Conversation

komuw
Copy link
Contributor

@komuw komuw commented May 13, 2024

This will print extra error details(like stack traces) for errors that happen to have them

Closes: #16

This will print extra error details(like stack traces) for errors that happen to have them
@komuw
Copy link
Contributor Author

komuw commented May 13, 2024

I can't think of an easy way to write a unit test for this so I didn't.

@komuw
Copy link
Contributor Author

komuw commented Jun 6, 2024

friendly ping @akshayjshah

Test that we're using `%+v` to print errors.
@akshayjshah
Copy link
Owner

Sorry for the long delay. The best way to test this is to add an error with a Format method. I pushed a commit to your branch to add some tests - take a look if you're curious!

Thanks for the contribution, and for reminding me to review this PR.

@akshayjshah akshayjshah merged commit 51c4d68 into akshayjshah:main Aug 9, 2024
@akshayjshah
Copy link
Owner

This is included in v1.1.0, which I just tagged. Thanks again for the contribution, @komuw!

@komuw komuw deleted the issues/16 branch August 9, 2024 07:35
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.

proposal: print errors using "%+v"
2 participants