def compile.said

ezx@1.11.0.0 · src/tool/run.bend:168

import ezx@1.11.0.0/src/tool/run.bend as Run
import Base

168# a build's output, shown on stderr when it failed, since stdout is the
169# program's, as cargo keeps its own words off it
170def compile.said(ok: Bool, +why: String, +text: String) -> IO(Unit):
171  match ok:
172    case True{}:
173      IO.pure(Unit, Unit{})
174    case False{}:
175      do IO<Unit>:
176        IO.print_err(String.trim_end(why ++ text))
177        IO.die(Unit, 1, "")

Uses (10)

Used by (1)