From 66f0564c3a3f122bb50eabaa1bf9a2bb0fa0562d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 25 May 2026 18:09:46 -0700 Subject: [PATCH] Maker.Watch: clean up a couple error logs --- lib/compiler/Maker/Watch.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/compiler/Maker/Watch.zig b/lib/compiler/Maker/Watch.zig index 36eefcbaafd5810daaff591589cb54051c61964c..603b9c911d696ad94f0ea5d250df07236cec78d6 100644 --- a/lib/compiler/Maker/Watch.zig +++ b/lib/compiler/Maker/Watch.zig @@ -234,9 +234,8 @@ const Os = switch (builtin.os.tag) { posix.fanotify_mark(fan_fd, .{ .ADD = true, .ONLYDIR = true, - }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| { - fatal("unable to watch {f}: {s}", .{ path, @errorName(err) }); - }; + }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| + fatal("unable to watch {f}: {t}", .{ path, err }); } break :rs &dh_gop.value_ptr.reaction_set; } @@ -289,7 +288,7 @@ const Os = switch (builtin.os.tag) { .ONLYDIR = true, }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| switch (err) { error.FileNotFound => {}, // Expected, harmless. - else => |e| std.log.warn("unable to unwatch '{f}': {s}", .{ path, @errorName(e) }), + else => |e| std.log.warn("unable to unwatch {f}: {t}", .{ path, e }), }; w.dir_table.swapRemoveAt(i); -- 2.54.0