darwin: add missing error handling

This commit is contained in:
Andrew Kelley 2019-05-27 15:14:35 -04:00
parent b3dc1c380d
commit db0a5e7516

View File

@ -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);
},