Commit 2e0dd5733f

Luna <git@l4.pm>
2019-11-02 20:46:48
add FileNotFound to os.ConnectError error set
1 parent d535bf2
Changed files (1)
lib
std
lib/std/os.zig
@@ -1919,6 +1919,9 @@ pub const ConnectError = error{
     /// This error occurs when no global event loop is configured,
     /// and connecting to the socket would block.
     WouldBlock,
+
+    /// The given path for the unix socket does not exist.
+    FileNotFound,
 } || UnexpectedError;
 
 /// Initiate a connection on a socket.