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
fix(share/shrex): return aggregated error if context Deadline reached #2243
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.
Hmm, it's correct to return a context error when the caller canceled it, unless the context cancelation error comes from the internal or sub-context. Is this the latter case?
Shrex will return context error, wrapped with other errors. It helps a lot to have aggregated errors dealing with shrex issues on other people nodes. |
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.
Ok, the Join kinda fixes my concern
Codecov Report
@@ Coverage Diff @@
## main #2243 +/- ##
==========================================
- Coverage 50.63% 50.42% -0.22%
==========================================
Files 150 150
Lines 9299 9297 -2
==========================================
- Hits 4709 4688 -21
- Misses 4195 4211 +16
- Partials 395 398 +3
|
Overview
Errors were lost on context deadline