fix: log silent errors and fix scan_dir dangling snapshot key
This commit is contained in:
parent
046c304c60
commit
eb42d23fc8
5 changed files with 43 additions and 14 deletions
|
|
@ -198,7 +198,8 @@ fn thread_fn(
|
|||
// the `info` pointer (which points into w.buf) a dangling reference.
|
||||
const next_entry_offset = info.NextEntryOffset;
|
||||
watches_mutex.unlock();
|
||||
handler.change(full_path, event_type, object_type) catch {
|
||||
handler.change(full_path, event_type, object_type) catch |e| {
|
||||
std.log.err("nightwatch: handler returned {s}, stopping watch thread", .{@errorName(e)});
|
||||
watches_mutex.lock();
|
||||
break;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue