Now using the right unexpectedError in seekForward
parent
a76023bcd8
commit
8be606ec80
|
@ -209,7 +209,7 @@ pub const File = struct {
|
||||||
const err = system.GetLastError();
|
const err = system.GetLastError();
|
||||||
return switch (err) {
|
return switch (err) {
|
||||||
system.ERROR.INVALID_PARAMETER => error.BadFd,
|
system.ERROR.INVALID_PARAMETER => error.BadFd,
|
||||||
else => os.unexpectedErrorPosix(err),
|
else => os.unexpectedErrorWindows(err),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue