The new (for 1.7) data-reader printing format for exceptions does not include the ex-data when relevant:
Approach: If ExceptionInfo is caught, also print :data key with ex-data. Include :data key for each ExceptionInfo in via.
Example with nested ExceptionInfo:
Added two patch files, the first with tests for the existing code, the second adding the :data key and extra tests for that.
Combine the two patches into a single patch
Include :data for all ExceptionInfo in :via (when appropriate) (and leave it where it is)
when you git format-patch, throw -W on there to get more context (I think it would help in this case)
everything else looks good
Cool – I'm assuming "single patch" implies "single commit" since I couldn't find a way to dump two commits into one patch file.
yeah, single commit is what I meant. you can just commit multiple times and format-patch to get a single patch with multiple commits, but would prefer single.
Attached CLJ-1716.patch, which has just one commit, and now attaches data both to everything appropriate in :via and at the top level (so the data for the root cause is duplicated).
Added one more test case while I was at it.