import * as tsplus_module_1 from "@effect/core/io/Effect/operations/fail";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/fromEffect";
/**
 * Returns a stream that always fails with the specified `error`.
 *
 * @tsplus static ets/Stream/Ops fail
 */

export function fail(error, __tsplusTrace) {
  return tsplus_module_2.fromEffect(() => tsplus_module_1.fail(error, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=fail.mjs.map