mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-01 23:33:07 +03:00
better error code for File.getEndPos failure
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@ pub const File = struct {
|
||||
if (err > 0) {
|
||||
return switch (err) {
|
||||
system.EBADF => error.BadFd,
|
||||
system.ENOMEM => error.OutOfMemory,
|
||||
system.ENOMEM => error.SystemResources,
|
||||
else => os.unexpectedErrorPosix(err),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user