~sircmpwn/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH hautils] main: update fmt::fatal usage

Details
Message ID
<20220509032524.11451-1-c7s@kasku.net>
DKIM signature
missing
Download raw message
Patch: +3 -3
---
 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
Details
Message ID
<CJV26EZNE6S3.J3EPGZB74BIY@taiga>
In-Reply-To
<20220509032524.11451-1-c7s@kasku.net> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hautils
   da3b970..59b2a4e  master -> master
Reply to thread Export thread (mbox)