import * as tsplus_module_1 from "@effect/core/stm/STM/operations/fail";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/orElse";
/**
 * Tries this effect first, and if it fails or retries, fails with the
 * specified error.
 *
 * @tsplus fluent ets/STM orElseFail
 */

export function orElseFail_(self, e) {
  return tsplus_module_2.orElse_(self, () => tsplus_module_1.fail(e));
}
/**
 * Tries this effect first, and if it fails or retries, fails with the
 * specified error.
 *
 * @tsplus static ets/STM/Aspects orElseFail
 */

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