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
ENH: get_status_dict - add exit_code if CommandError #5642
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5642 +/- ##
========================================
Coverage 89.71% 89.72%
========================================
Files 318 320 +2
Lines 41652 41808 +156
========================================
+ Hits 37367 37511 +144
- Misses 4285 4297 +12
Continue to review full report at Codecov.
|
Looks useful to me. |
Thank you @kyleam . Other @datalad/developers - any feedback before I proceed? |
My 2ct: There is very little cost to adding useful information to a result record. The only downside is that with #6054 it is the wild-west re naming the fields. Field names will have to be static forever, because hooks depend on them, once written. |
After having looked into this, we need to change the approach to make this happen. As discovered in #6167 (comment) and documented in #6171 @bpoldrack can you please advice how to handle this case reliably, ie. check that the captured exception was |
I think you are right. There are two ways, I can see:
|
I think I do not like either scenario. Any additional logic that is put into
|
This prevents rendering the 'datalad.exc.str.tblimit' config setting ineffective.
Immediate use-case is foreach since it feels worthwhile channeling upstairs the details of the failed execution, but I can imagine it being useful for other cases too
e499865
to
31e0efc
Compare
I pushed my proposal to this PR. |
This is now complete with a test and ready to merge. |
Thx @bpoldrack |
Immediate use-case is foreach since it feels worthwhile channeling
upstairs the details of the failed execution, but I can imagine
it being useful for other cases too.
WDYT?
TODO: