zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 66f0564c3a3f122bb50eabaa1bf9a2bb0fa0562d (tree)
parent cb1f3e0ac416ccc3a4cf5fead70807bd7a66d9b8
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 25 May 2026 18:09:46 -0700

Maker.Watch: clean up a couple error logs

Diffstat:
Mlib/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 @@ -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);