diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index 4a317eddf..96ef178bb 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -785,7 +785,7 @@ seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Error) { final_offset := i64(_unix_lseek(fd, int(offset), c.int(whence))) if final_offset == -1 { - return 0, Platform_Error.EPERM + return 0, get_last_error() } return final_offset, nil }