hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit fedd4ea7a6a22c9f012f6d3371649573402e7ed6
parent b0584bf9e2537e3f94d691c57dbf0ccc29d890fd
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 11 Sep 2023 22:53:22 +0300

cmd/hare: Print a newline before the exit code

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mcmd/hare/build/queue.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha @@ -209,6 +209,9 @@ fn await_task(ctx: *context, jobs: *[]job) (size | void | error) = { match (exec::check(&status)) { case void => void; case let e: !exec::exit_status => + if (ctx.mode == output::DEFAULT) { + fmt::errorln()?; + }; fmt::fatal(ctx.mods[t.idx].name, ctx.cmds[t.kind], exec::exitstr(e)); };