How to display the `cause` property when using `Cause.pretty` with a `Data.TaggedError`
Very stupid question maybe:
- I've created a
- I have an effect that can error out, so I
- When somewhere else I use my effect, and I do
How to have the
- I've created a
Data.TaggedError with a { cause: Error } property- I have an effect that can error out, so I
Effect.tapErrorCause and log the error with Cause.pretty which prints a proper and readable description of the error, then use Effect.mapError to map from that Error to my TaggedError- When somewhere else I use my effect, and I do
catchAllCause and I Cause.pretty the cause, I find my tagged error name but then just a stack trace, no description of the error in the cause property, so it's basically unreadable cause it only reads as "MyTaggedError: An error has occurred" and then stack trace onlyHow to have the
cause property to display even when Cause.pretty my tagged error wrapper?