error handling basics
I'm sure there are many ways to handle errors in Effect.
Can someone show me one way to run this effect and catch the resulting error?
Can someone show me one way to run this effect and catch the resulting error?
const myEffect = Effect.fail(new Error('my error'));