Effect CommunityEC
Effect Community•3y ago•
2 replies
joystick

Splitting Error Logging and Continuation of Effect

Hi, how would I achieve the following:
Given
pipe(
  // ...
  Effect.map(x => x.map(validation.parseSubscribed)),
  Effect.map(separate),
  Effect.flatMap(([errors, results]) =>
    // TODO: send errros to Console.log
    // and/or Sentry
    Effect.succeed(results)
  ),
  // ...
)

I would like to Effectively send errors to Console and/or Sentry if they are present.
Should I use Effect.tap() here? 🤔
Was this page helpful?