Now using the right unexpectedError in seekForward

This commit is contained in:
Jimmi Holst Christensen 2018-01-19 21:51:10 +01:00
parent a76023bcd8
commit 8be606ec80

View File

@ -209,7 +209,7 @@ pub const File = struct {
const err = system.GetLastError();
return switch (err) {
system.ERROR.INVALID_PARAMETER => error.BadFd,
else => os.unexpectedErrorPosix(err),
else => os.unexpectedErrorWindows(err),
};
}
},