riverctl: Do not use std.debug.print()

This commit is contained in:
Leon Henrik Plickat 2021-03-27 11:56:15 +01:00 committed by Isaac Freund
parent f99071f1da
commit e43e58432f

View file

@ -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);
} }