authorgravatar for git@l4.pmLuna <git@l4.pm> 2019-11-02 16:41:32-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-02 15:49:15-04:00
logd535bf2c7d22ff2039158bfa8d21bfb012a34c0c
tree9e581ec51c1e905a5f6fa26f93f20d44d8ab0451
parentf749bf094249bc6b48e3359dd99715ae7fec176e

add FileNotFound error to os.connect


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/os.zig+1
......@@ -1946,6 +1946,7 @@ pub fn connect(sockfd: fd_t, sock_addr: *const sockaddr, len: socklen_t) Connect
19461946 ENOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket.
19471947 EPROTOTYPE => unreachable, // The socket type does not support the requested communications protocol.
19481948 ETIMEDOUT => return error.ConnectionTimedOut,
1949 ENOENT => return error.FileNotFound, // Returned when socket is AF_UNIX and the given path does not exist.
19491950 else => |err| return unexpectedErrno(err),
19501951 }
19511952 }