We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f30fa commit f9d7dceCopy full SHA for f9d7dce
Network/Socket/Types.hsc
@@ -1151,7 +1151,9 @@ unixPathMax = #const sizeof(((struct sockaddr_un *)NULL)->sun_path)
1151
pokeSockAddr :: Ptr a -> SockAddr -> IO ()
1152
#if defined(DOMAIN_SOCKET_SUPPORT)
1153
pokeSockAddr p sa@(SockAddrUnix path) = do
1154
- when (length path > unixPathMax) $ error "pokeSockAddr: path is too long"
+ when (length path > unixPathMax) $ error
1155
+ $ "pokeSockAddr: path is too long in SockAddrUnix " <> show path
1156
+ <> ", length " <> show (length path) <> ", unixPathMax " <> show unixPathMax
1157
zeroMemory p $ fromIntegral $ sizeOfSockAddr sa
1158
# if defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
1159
(#poke struct sockaddr_un, sun_len) p ((#const sizeof(struct sockaddr_un)) :: Word8)
0 commit comments