mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
add FileNotFound error to os.connect
This commit is contained in:
parent
f749bf0942
commit
d535bf2c7d
1 changed files with 1 additions and 0 deletions
|
|
@ -1946,6 +1946,7 @@ pub fn connect(sockfd: fd_t, sock_addr: *const sockaddr, len: socklen_t) Connect
|
|||
ENOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket.
|
||||
EPROTOTYPE => unreachable, // The socket type does not support the requested communications protocol.
|
||||
ETIMEDOUT => return error.ConnectionTimedOut,
|
||||
ENOENT => return error.FileNotFound, // Returned when socket is AF_UNIX and the given path does not exist.
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue