Skip to content

Conversation

@faern
Copy link
Member

@faern faern commented Oct 30, 2024

Don't both print the contained error in the Display impl and also return it in source.

The error, as it was before, would print an error chain like this:

Error: Resolution error something something
Caused by: Resolution error something something

An error should avoid including its source error in its own Display impl. Or, if it is included, it should not return that from the source method.

If you want to dive more into how long I have cared about this, you can follow this URL :D rust-lang/api-guidelines#210


This change is Reviewable

Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Don't both print the contained error in the Display impl and also return
it in source
@faern faern force-pushed the fix-encrypted-dns-error-source branch from b2055bf to 724809a Compare October 31, 2024 08:53
@faern faern merged commit d8385af into main Oct 31, 2024
49 checks passed
@faern faern deleted the fix-encrypted-dns-error-source branch October 31, 2024 08:57
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.

3 participants