authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:09:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 19:27:16-07:00
log66f0564c3a3f122bb50eabaa1bf9a2bb0fa0562d
tree4fed2cf04a15551504bdd6bfd6886a06a9edf4f5
parentcb1f3e0ac416ccc3a4cf5fead70807bd7a66d9b8

Maker.Watch: clean up a couple error logs


1 files changed, 3 insertions(+), 4 deletions(-)

lib/compiler/Maker/Watch.zig+3-4
...@@ -234,9 +234,8 @@ const Os = switch (builtin.os.tag) {...@@ -234,9 +234,8 @@ const Os = switch (builtin.os.tag) {
234 posix.fanotify_mark(fan_fd, .{234 posix.fanotify_mark(fan_fd, .{
235 .ADD = true,235 .ADD = true,
236 .ONLYDIR = true,236 .ONLYDIR = true,
237 }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| {237 }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err|
238 fatal("unable to watch {f}: {s}", .{ path, @errorName(err) });238 fatal("unable to watch {f}: {t}", .{ path, err });
239 };
240 }239 }
241 break :rs &dh_gop.value_ptr.reaction_set;240 break :rs &dh_gop.value_ptr.reaction_set;
242 }241 }
...@@ -289,7 +288,7 @@ const Os = switch (builtin.os.tag) {...@@ -289,7 +288,7 @@ const Os = switch (builtin.os.tag) {
289 .ONLYDIR = true,288 .ONLYDIR = true,
290 }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| switch (err) {289 }, fan_mask, path.root_dir.handle.handle, path.subPathOrDot()) catch |err| switch (err) {
291 error.FileNotFound => {}, // Expected, harmless.290 error.FileNotFound => {}, // Expected, harmless.
292 else => |e| std.log.warn("unable to unwatch '{f}': {s}", .{ path, @errorName(e) }),291 else => |e| std.log.warn("unable to unwatch {f}: {t}", .{ path, e }),
293 };292 };
294293
295 w.dir_table.swapRemoveAt(i);294 w.dir_table.swapRemoveAt(i);