core: handle src/os/env.zig errors on windows

This commit is contained in:
Jeffrey C. Ollie
2025-02-02 13:16:53 -06:00
parent 8660cdaad5
commit 002cce4e81

View File

@ -80,7 +80,8 @@ pub fn getenv(alloc: Allocator, key: []const u8) Errors!?GetEnvResult {
.value = v,
} else |err| switch (err) {
error.EnvironmentVariableNotFound => null,
else => err,
error.InvalidWtf8 => null,
else => |e| e,
},
};
}