~/bend-docscommunity

src/status.bend checks

raw source on the hub · import bolt@1.62.0.0/src/status.bend as Status

src/status: a run's exit status. A run that found errors exits 1, so a shell, the gate or an editor can tell without reading the output. IO.exit sets the code and writes nothing: the findings are already printed, and stderr stays empty (an IO.die with an empty message put a blank line there).

1 import
import Base

Definitions

def stop source · line 9 · raw

@bad:Bool -> IO(Unit)

exit 1 when the run found errors, else fall through (exit 0)