-
-
Notifications
You must be signed in to change notification settings - Fork 609
[WIP] Replace unwrap calls in asyncgit with error handling - closes #53 #58
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
[WIP] Replace unwrap calls in asyncgit with error handling - closes #53 #58
Conversation
38ab97d
to
3e4d1e9
Compare
Hey @MCord thanks for getting at this! |
removed an obsolete comment.
Really good work! Two more things:
|
Thanks ❤️ ! I will remove every unwrap outside the tests and update the PR. I don't mind changing |
Sorry to be such a pain in the ass 🙈! I am super glad you do all of this! |
My pleasure! sorry you have to micro mange this PR :) It's my first lets hope It gets better with time 😂 |
Looks good to me! I will squash merge it if that's ok by you? |
Perfect, Thank you.
…On Fri, May 15, 2020 at 3:12 PM Stephan Dilly ***@***.***> wrote:
Looks good to me! I will squash merge it if that's ok by you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#58 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALZWZ7SJGEDVV4GDSYVCBDRRU5U3ANCNFSM4NAVG2FQ>
.
|
Thank you @MCord! Great job!👍 |
This pull request tries to replace
unwrap()
calls in asyncgit with error handling via a custom error type defined inerror.rs
. changes has been split into separate commits.error.rs
file (dependent onthiserror
crate)Result<T>
type alias forResult<T,Error>
unwrap()
calls fromasyncgit
lib except a few in callbacks that I don't know how to deal with for the moment.I have not touched
unwrap()
inside tests as I am not sure yet if we want to remove them too. I assume they are alright in tests. I will continue to change other files when I get feedback about the code.