-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: Display for Error shouldn't include source #2199
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seanmonstar
force-pushed
the
error-display-without-source
branch
from
March 22, 2024 12:31
ddf7016
to
517f9da
Compare
seanmonstar
force-pushed
the
error-display-without-source
branch
from
March 22, 2024 12:32
517f9da
to
b58a6ca
Compare
legoktm
added a commit
to freedomofpress/securedrop-client
that referenced
this pull request
May 17, 2024
There's a small change in how reqwest errors are printed (see <seanmonstar/reqwest#2199>), so handle that in our code and update one test accordingly. Import a number of audits and trust markers, a few audits will still be needed.
5 tasks
legoktm
added a commit
to freedomofpress/securedrop-client
that referenced
this pull request
May 17, 2024
There's a small change in how reqwest errors are printed (see <seanmonstar/reqwest#2199>), so handle that in our code and update one test accordingly. Import a number of audits and trust markers, a few audits will still be needed. Fixes #1985.
ericswanson-dfinity
added a commit
to dfinity/sdk
that referenced
this pull request
Jul 15, 2024
Since reqwest 0.12.1 (seanmonstar/reqwest#2199), fmt::Display for reqwest::Error no longer includes the source. The whole reason for WrappedReqwestError was to avoid displaying the source twice. But since the above change, the source isn't displayed at all. After this change, dfx will once again display the error source(s) for request::Error, but on separate lines ("Caused by:") like other error sources.
3 tasks
ericswanson-dfinity
added a commit
to dfinity/sdk
that referenced
this pull request
Jul 15, 2024
Since reqwest 0.12.1 (seanmonstar/reqwest#2199), fmt::Display for reqwest::Error no longer includes the source. The whole reason for WrappedReqwestError was to avoid displaying the source twice. But since the above change, the source isn't displayed at all. After this change, dfx will once again display the error source(s) for request::Error, but on separate lines ("Caused by:") like other error sources.
1 task
wfchandler
added a commit
to oxidecomputer/oxide.rs
that referenced
this pull request
Oct 9, 2024
reqwest#2199[0] removed the error source from its Display impl, causing us to lose context on why a request failed. Manually iterate over error sources and append them to output message to restore the original behavior. The first source is the intial error that we have wrapped, so that must be skipped in order to prevent duplicating the message. [0] seanmonstar/reqwest#2199
Nutomic
pushed a commit
to Nutomic/reqwest
that referenced
this pull request
Nov 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was supposed to be in 0.12 and forgotten. Getting it into 0.12.1 just a couple days after should be early enough.