Skip to content

Commit

Permalink
change fatal on error.UnsupportedFlags to a std.log.err and return
Browse files Browse the repository at this point in the history
  • Loading branch information
mocompute committed Oct 29, 2024
1 parent 4661705 commit 355c82b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/std/Build/Watch.zig
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ const Os = switch (builtin.os.tag) {
.REPORT_FID = true,
.REPORT_TARGET_FID = true,
}, 0) catch |err| switch (err) {
error.UnsupportedFlags => fatal("fanotify_init failed due to old kernel; requires 5.17+", .{}),
error.UnsupportedFlags => {
std.log.err("fanotify_init failed due to old kernel; requires 5.17+", .{});
return err;
},
else => |e| return e,
};
return .{
Expand Down

0 comments on commit 355c82b

Please sign in to comment.