Errors Not Propagating from Service to Effect

So I noticed that the errors channel from my service aren't passing to my effects that consume them:

// for the effect in here: 
// Effect<...,ConfigError,...>
export class Foo extends Effect.Service<Foo>()("Foo", {
  effect: Effect.gen(function* () {
    const config = yield* Config.redacted(Config.string("VAR_NAME"));
    return {
      doSomething: blah(config)
    }
  }),
}) {}

// Effect<...,never(??), Foo>
const myEffect = Effect.gen(function*(){
  const foo = yield* Foo
  ... uses foo 
})


Is there something that I'm missing or what am I doing wrong? I thought that ConfigError would pass on to myEffect.
Was this page helpful?