hey so when we are trying to catch an error that is already defined in the std under a specific type does the ZLS really not have that information to autocomplete or am i doing something wrong that it cant reach it lol:
https://ziglang.org/documentation/master/std/#std.process.changeCurDir
pub fn cd(req_dir: []const u8) !void {
try std.process.changeCurDir(req_dir) catch |err| switch (err) {
error.NotDir => {
std.debug.print("The Path is Not a Dir: {s}\n", .{req_dir});
return err;
},
error.FileNotFound => {
std.debug.print("Directory not found: {s}\n", .{req_dir});
return err;
},
error.AccessDenied => {
std.debug.print("Access denied to directory: {s}\n", .{req_dir});
return err;
},
error.NameTooLong => {
std.debug.print("Path name is too long: {s}\n", .{req_dir});
return err;
},
else => {
std.debug.print("There is another problem with {s}\n", .{req_dir});
return err;
},
};
}