/** * Executes this effect and returns its value, if it succeeds, but otherwise * fails with the specified error. * * @tsplus static effect/core/io/Effect.Aspects orElseFail * @tsplus pipeable effect/core/io/Effect orElseFail */ export function orElseFail(e: LazyArg) { return (self: Effect): Effect => self.orElse(Effect.failSync(e)) }