// tracing: off
import { pipe } from "../../Function"
import * as O from "../../Option"
import * as T from "../_internal/effect"
import * as M from "../_internal/managed"
import { Stream } from "./definitions"
/**
 * Transforms the errors emitted by this stream using `f`.
 */

export function mapError_(self, f) {
  return new Stream(M.map_(self.proc, T.mapError(O.map(f))))
}
/**
 * Transforms the errors emitted by this stream using `f`.
 */

export function mapError(f) {
  return (self) => mapError_(self, f)
}
//# sourceMappingURL=mapError.js.map
