mirror of
https://github.com/ziglang/zig.git
synced 2026-01-12 02:15:12 +00:00
commit
91de5c212f
@ -469,6 +469,7 @@ pub const WriteFileError = error{
|
||||
SystemResources,
|
||||
OperationAborted,
|
||||
BrokenPipe,
|
||||
NotOpenForWriting,
|
||||
Unexpected,
|
||||
};
|
||||
|
||||
@ -542,6 +543,7 @@ pub fn WriteFile(
|
||||
.NOT_ENOUGH_QUOTA => return error.SystemResources,
|
||||
.IO_PENDING => unreachable,
|
||||
.BROKEN_PIPE => return error.BrokenPipe,
|
||||
.INVALID_HANDLE => return error.NotOpenForWriting,
|
||||
else => |err| return unexpectedError(err),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user