diff options
| author | Luna <git@l4.pm> | 2019-11-02 16:41:32 -0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-02 15:49:15 -0400 |
| commit | d535bf2c7d22ff2039158bfa8d21bfb012a34c0c (patch) | |
| tree | 9e581ec51c1e905a5f6fa26f93f20d44d8ab0451 | |
| parent | f749bf094249bc6b48e3359dd99715ae7fec176e (diff) | |
| download | zig-d535bf2c7d22ff2039158bfa8d21bfb012a34c0c.tar.gz zig-d535bf2c7d22ff2039158bfa8d21bfb012a34c0c.zip | |
add FileNotFound error to os.connect
| -rw-r--r-- | lib/std/os.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 58f74563e1..0b1e62d63d 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -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), } } |
