import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/fail";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/orElse";
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream.catchAll`.
 *
 * @tsplus fluent ets/Stream orElseFail
 */

export function orElseFail_(self, e, __tsplusTrace) {
  return tsplus_module_2.orElse_(self, () => tsplus_module_1.fail(e, __tsplusTrace), __tsplusTrace);
}
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream.catchAll`.
 *
 * @tsplus static ets/Stream/Aspects orElseFail
 */

export const orElseFail = (e, __tsplusTrace) => self => orElseFail_(self, e, __tsplusTrace);
//# sourceMappingURL=orElseFail.mjs.map