Throwing Custom Errors from Effects: Simplifying Error Handling
Is there a simple way to throw a custom error on failure from an effect?
I'm extracting a util to a standalone lib and the user is not expected to know about Effect, so I tried letting
I'm extracting a util to a standalone lib and the user is not expected to know about Effect, so I tried letting
runSync, throw but I realised it converts the error to a string and the error metadata is hidden behind a Cause, which is not great.