mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
darwin: add missing error handling
This commit is contained in:
parent
b3dc1c380d
commit
db0a5e7516
@ -957,6 +957,7 @@ pub fn Watch(comptime V: type) type {
|
||||
} else |err| switch (err) {
|
||||
error.EventNotFound => unreachable,
|
||||
error.ProcessNotFound => unreachable,
|
||||
error.Overflow => unreachable,
|
||||
error.AccessDenied, error.SystemResources => |casted_err| {
|
||||
await (async self.channel.put(casted_err) catch unreachable);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user