import * as tsplus_module_1 from "@effect/core/io/Cause/errors";
import * as tsplus_module_2 from "@effect/core/io/Cause/definition";
import * as tsplus_module_3 from "@effect/core/stream/Sink/operations/failCause";
/**
 * Creates a sink halting with the specified message, wrapped in a
 * `RuntimeError`.
 *
 * @tsplus static ets/Sink/Ops dieMessage
 */

export function dieMessage(message, __tsplusTrace) {
  return tsplus_module_3.failCause(() => tsplus_module_2.die(new tsplus_module_1.RuntimeError(message())), __tsplusTrace);
}
//# sourceMappingURL=dieMessage.mjs.map