fix: macs build

This commit is contained in:
CJ van den Berg 2026-02-26 13:35:42 +01:00
parent f34fc3cb93
commit 07fcb900f8
2 changed files with 6 additions and 2 deletions

View file

@ -411,7 +411,11 @@ const FSEventsBackend = struct {
.modified
else
continue;
ctx.handler.change(path, event_type);
ctx.handler.change(path, event_type) catch |e| switch (e) {
error.HandlerFailed => {
std.log.err("nightwatch.callback failed: {t}", .{e});
},
};
}
}

View file

@ -166,7 +166,7 @@ fn drainEvents(watcher: *Watcher) !void {
if (builtin.os.tag == .linux) {
try watcher.handle_read_ready();
} else {
std.time.sleep(300 * std.time.ns_per_ms);
std.Thread.sleep(300 * std.time.ns_per_ms);
}
}