- Notifications
You must be signed in to change notification settings - Fork515
fix an Error/Display impl#1262
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
paolobarbolini commentedSep 20, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Could you rebase and fix tests? |
a52f18f
to7db5bc6
CompareTypes implementing the Error trait should print some inner Error **xor**return that inner Error from its Error::source impl. Otherwise, the sameerror will be printed multiple times when printing an Error's entiresource chain, which is unhelpful.
7db5bc6
toc5d3442
CompareDone. Also FWIW, and I'm not 100% sure, but it seems like there might be another case of this kind of thing here: rust-postgres/postgres-openssl/src/lib.rs Lines 169 to 192 inbbd1301
|
Correct that's another case of it. Would you like to send a PR about it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for fixing this!
f34ed1b
intorust-postgres:masterUh oh!
There was an error while loading.Please reload this page.
Types implementing the Error trait should print some inner Errorxor return that inner Error from its Error::source impl. Otherwise, the same error will be printed multiple times when printing an Error's entire source chain, which is unhelpful.