riverctl: Do not use std.debug.print()
This commit is contained in:
parent
f99071f1da
commit
e43e58432f
1 changed files with 3 additions and 2 deletions
|
@ -147,6 +147,7 @@ fn callbackListener(callback: *zriver.CommandCallbackV1, event: zriver.CommandCa
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn printErrorExit(comptime format: []const u8, args: anytype) noreturn {
|
pub fn printErrorExit(comptime format: []const u8, args: anytype) noreturn {
|
||||||
std.debug.print("err: " ++ format ++ "\n", args);
|
const stderr = std.io.getStdErr().outStream();
|
||||||
os.exit(1);
|
stderr.print("err: " ++ format ++ "\n", args) catch std.os.exit(1);
|
||||||
|
std.os.exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue