parsonsmatt/annotated-exception

`flatten` should use `addCallStackToException`

glasserc opened this issue · 2 comments

Currently it just concatenates annotations using (++), which means we can get two CallStack annotations in an exception.

Can you post a demonstration? I tried to ensure that the API in the library preserved the right invariants, so if I know where the problem is, then that makes it easier to diagnose. Thanks!

I wasn't exactly sure what qualified as the API in the library but I wrote a few test cases demonstrating the problem in the linked PR.