-
Notifications
You must be signed in to change notification settings - Fork 968
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 our terms of service and privacy 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 the std::error::Error::source()
method be implemented to yield the source
error for this?
@djc Thanks for asking, but I'm not sure, actually. I noticed that |
According to the thiserror documentation, it states:
Is it still necessary to implement the std::error::Error::source() method? |
Sure, but your PR does not add any |
This PR didn't add So it should implemented |
Ahh, okay, thanks. |
7251ef7
to
4ce57fd
Compare
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
4ce57fd
to
bc90f80
Compare
@djc Squashed. Thanks for the review. |
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.