-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
sync: Remove crash! #5847
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
sync: Remove crash! #5847
Conversation
Please run |
I don't know if you have seen it: the CI shows some errors on Windows:
I think you forgot a |
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.
We need to be a bit careful here. show!
is not equivalent to crash!
, because crash!
exits the program and show!
doesn't. To keep the same behaviour, we therefore need to make the fallible functions return a UResult
and bubble the error up to the main function. For example, we now might return an INVALID_HANDLE
on like 115 to some code that might expect a valid handle.
@daria-tanasie I wonder if you are still working on this. If not, I'd like to make some effort on it. |
@tertsdiepraam I would like to open another PR regarding this since this one has been hanging for a while, is that ok? |
Sure please go ahead. :)
…-------- Message d'origine --------
Le 07/07/2024 11:01, kf zheng a écrit :
***@***.***(https://github.com/tertsdiepraam) I would like to open another PR regarding this since this one has been hanging for a while, is that ok?
—
Reply to this email directly, [view it on GitHub](#5847 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAFTBDRWUURGJ72DND3LPITZLD7V7AVCNFSM6AAAAABB3RKLPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGM3TOMZTGQ).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
fixed here: #6547 |
The issue: Remove all uses of crash! #5487
Replaced all uses of crash! from the file "src/uu/sync/src/sync.rs" with the show! macro