Effect.eithereff_1 that it is expected to return an Error so I converted it to an Either eff_2 it should return that either to the main program, eff_2 also in either yield* Effect.logInfo("Manifest ID obtained:", yield* manifestId$).pipe( Effect.when(() => Either.isRight(manifestId$))); gets printed in the console eventhough it is Left not Right