commit 59b2a4e209c5f56bfbe003cd2630b3cb8285cdcc
parent da3b9701cc3b0453372f6df31db7a713d57fc01c
Author: Cormac Stephenson <c7s@kasku.net>
Date: Mon, 9 May 2022 04:25:25 +0100
main: update fmt::fatal usage
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/main/main.ha b/main/main.ha
@@ -11,11 +11,11 @@ export type error = !(io::error | fs::error | exec::error);
export @symbol("main") fn main() void = {
match (utilmain()) {
case let err: io::error =>
- fmt::fatal("I/O error: {}", io::strerror(err));
+ fmt::fatal("I/O error:", io::strerror(err));
case let err: fs::error =>
- fmt::fatal("Filesystem error: {}", fs::strerror(err));
+ fmt::fatal("Filesystem error:", fs::strerror(err));
case let err: exec::error =>
- fmt::fatal("Exec error: {}", exec::strerror(err));
+ fmt::fatal("Exec error:", exec::strerror(err));
case void => void;
};
};