-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Let caller hander error cases #101
Conversation
Codecov Report
@@ Coverage Diff @@
## main #101 +/- ##
==========================================
+ Coverage 78.33% 79.36% +1.03%
==========================================
Files 9 9
Lines 180 189 +9
==========================================
+ Hits 141 150 +9
Misses 19 19
Partials 20 20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Can you give me some example of this? |
what i'm facing is a case when (on windows) directory copy fails because another process is reading a single file. |
@otiai10 will check in 24 hours |
Co-authored-by: Hiromu OCHIAI <[email protected]>
Co-authored-by: Hiromu OCHIAI <[email protected]>
Please consider this.
This PR introduces
onErr
option in a form offunc(error)error
which lets caller to handler error cases .It enables caller to log error by error and gives a possibility to continue with copying in case error is not that severe by returning nil (swallowing an error).