~sircmpwn/public-inbox

hautils: main: update fmt::fatal usage v1 APPLIED

Cormac Stephenson: 1
 main: update fmt::fatal usage

 1 files changed, 3 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/32109/mbox | git am -3
Learn more about email & git

[PATCH hautils] main: update fmt::fatal usage Export this patch

---
 main/main.ha | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main/main.ha b/main/main.ha
index 5d96752..6b3b0d5 100644
--- 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;
	};
};
-- 
2.36.0
Thanks!

To git@git.sr.ht:~sircmpwn/hautils
   da3b970..59b2a4e  master -> master