Effect CommunityEC
Effect Community3y ago
22 replies
kristo

Wrapping Errors in `runPromise` and Extracting Underlying Error

Why is it that running
runPromise
will wrap all my errors with a generic Error class? Is there a way to extract the underlying error out of this? The only way I can see right now is to use runPromiseExit and then get the cause.error and throw it manually
Was this page helpful?