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

pull/5530/head
Jeffrey C. Ollie 2025-02-02 13:16:53 -06:00
parent 8660cdaad5
commit 002cce4e81
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 2 additions and 1 deletions

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