mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
core: handle src/os/env.zig errors on windows
This commit is contained in:
@ -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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user