Effect CommunityEC
Effect Community3y ago
29 replies
JVictorV

Unwrapping Fiber Errors in Effect.runPromise

So i have an effect of type
Effect<never, ErrorResponse, SuccessResponse>

When running it with Effect.runPromise i noticed that my errors are wrapped in a fiber error, but in the cases that i've handled the errors i need to unwrap those in the original ErrorResponse, how do i do that?
Was this page helpful?