Skip to content

Commit

Permalink
Update for latest Zig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 authored and Vexu committed Feb 26, 2024
1 parent bebda7c commit 59fd131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aro/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub const Environment = struct {
const val: ?[]const u8 = std.process.getEnvVarOwned(allocator, env_var_name) catch |err| switch (err) {
error.OutOfMemory => |e| return e,
error.EnvironmentVariableNotFound => null,
error.InvalidUtf8 => null,
error.InvalidWtf8 => null,
};
@field(env, field.name) = val;
}
Expand Down
3 changes: 2 additions & 1 deletion src/aro/Driver.zig
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ pub fn errorDescription(e: anyerror) []const u8 {
error.NotDir => "is not a directory",
error.NotOpenForReading => "file is not open for reading",
error.NotOpenForWriting => "file is not open for writing",
error.InvalidUtf8 => "input is not valid UTF-8",
error.InvalidUtf8 => "path is not valid UTF-8",
error.InvalidWtf8 => "path is not valid WTF-8",
error.FileBusy => "file is busy",
error.NameTooLong => "file name is too long",
error.AccessDenied => "access denied",
Expand Down

0 comments on commit 59fd131

Please sign in to comment.