| ... | @@ -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 | }; |
| 294 | | 293 | |
| 295 | w.dir_table.swapRemoveAt(i); | 294 | w.dir_table.swapRemoveAt(i); |