Preserving Error Channels with Reusable `catchTags` Effect

Is there a way to preserve the error channel with a separately defined catchTags Effect? I have a catchTags that I want to reuse, but when I pipe it, it will add the new success channels, but then not be able to pass through the remaining errors

const myEffect = Effect.gen(...).pipe(Effect.catchTags(...)) // works fine

const handleSomeErrors = Effect.catchTags(...)
const myEffect = Effect.gen(...).pipe(handleSomeErrors) // Effect<A,unknown,R> errors have for some reason been removed
Was this page helpful?