Effect CommunityEC
Effect Community3y ago
18 replies
Graeme

Issue with error wrapping in `Effect.runPromise` during interop with Promises

Hello! I'm doing some interop with Promises where a promise needs to reject with a particular error (which is later converted to a GraphQL error). We've tried Effect.runPromise but it's wrapping the error in a fiber error, which means the handling code doesn't see the error it's expecting. Is there a similar function that doesn't wrap it?
Was this page helpful?