- Notifications
You must be signed in to change notification settings - Fork963
opt(err): show renaming file error source#4414
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
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.
Should thestd::error::Error::source()
method be implemented to yield thesource
error for this?
@djc Thanks for asking, but I'm not sure, actually. I noticed that |
According to the thiserrordocumentation, it states:
Is it still necessary to implement the std::error::Error::source() method? |
Sure, but your PR does not add any |
Binlogo commentedJul 15, 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.
This PR didn't add So it should implemented |
Ahh, okay, thanks. |
rami3l left a comment• 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.
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.
Looks nice to me, thanks!
@djc Do you happen to have remaining concerns or all of them have been addressed already?
@Binlogo just squash your commits please -- the second commit really belongs with the first one. |
chore: fix ci windows build issue
Binlogo commentedJul 16, 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.
@djc Squashed. Thanks for the review. |
792598c
Uh oh!
There was an error while loading.Please reload this page.
Problem you are trying to solve
We occasionally encounter the following error:
This issue is difficult to reproduce, so it's important to add a source for reporting first.
Description
This pull request introduces a
RenamingFile
error with asource
to improve error handling for file renaming operations in theRustupError
enum. It updates the codebase to use this new error type, enhancing the clarity and consistency of error reporting.