authorgravatar for git@l4.pmLuna <git@l4.pm> 2019-11-02 16:46:48-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-02 15:49:15-04:00
log2e0dd5733f9aec168f72167ca0a0e306b2810ae2
treee59caa6d349e7b9f6147acf401aa0f4322382f92
parentd535bf2c7d22ff2039158bfa8d21bfb012a34c0c

add FileNotFound to os.ConnectError error set


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

lib/std/os.zig+3
...@@ -1919,6 +1919,9 @@ pub const ConnectError = error{...@@ -1919,6 +1919,9 @@ pub const ConnectError = error{
1919 /// This error occurs when no global event loop is configured,1919 /// This error occurs when no global event loop is configured,
1920 /// and connecting to the socket would block.1920 /// and connecting to the socket would block.
1921 WouldBlock,1921 WouldBlock,
1922
1923 /// The given path for the unix socket does not exist.
1924 FileNotFound,
1922} || UnexpectedError;1925} || UnexpectedError;
19231926
1924/// Initiate a connection on a socket.1927/// Initiate a connection on a socket.