Issue with `Either.mapBoth` and `Effect` usage in TypeScript code

Hi!
running const archiveFiles = yield* getArchiveFiles(latestManifestId) works fine w/o any errors but when it is inside an Either.mapBoth it returns
error: Uncaught (in promise) (FiberFailure) Error: {
  "_id": "Effect",
  "_op": "Commit"
}


right now onLeft branch will be evaluated, what is wrong w/ my syntax?

yield* (yield* Either.mapBoth(manifestId$, {
    onRight: (manifestId) =>
      Effect.if(manifestId == latestManifestId, {
        onTrue: () => Effect.exit(Effect.succeed("Nothing to update")),
        onFalse: () => getArchiveFiles(latestManifestId),
      }),
    onLeft: (_) => getArchiveFiles(latestManifestId),
  }));
Was this page helpful?