mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +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,
|
.value = v,
|
||||||
} else |err| switch (err) {
|
} else |err| switch (err) {
|
||||||
error.EnvironmentVariableNotFound => null,
|
error.EnvironmentVariableNotFound => null,
|
||||||
else => err,
|
error.InvalidWtf8 => null,
|
||||||
|
else => |e| e,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user