File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1151,7 +1151,9 @@ unixPathMax = #const sizeof(((struct sockaddr_un *)NULL)->sun_path)
1151
1151
pokeSockAddr :: Ptr a -> SockAddr -> IO ()
1152
1152
#if defined(DOMAIN_SOCKET_SUPPORT)
1153
1153
pokeSockAddr p sa@ (SockAddrUnix path) = do
1154
- when (length path > unixPathMax) $ error " pokeSockAddr: path is too long"
1154
+ when (length path > unixPathMax) $ error
1155
+ $ " pokeSockAddr: path is too long in SockAddrUnix " <> show path
1156
+ <> " , length " <> show (length path) <> " , unixPathMax " <> show unixPathMax
1155
1157
zeroMemory p $ fromIntegral $ sizeOfSockAddr sa
1156
1158
# if defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
1157
1159
(# poke struct sockaddr_un, sun_len) p ((# const sizeof(struct sockaddr_un)) :: Word8 )
@@ -1318,7 +1320,7 @@ socktypeBijection :: Bijection SocketType String
1318
1320
socktypeBijection =
1319
1321
[ (UnsupportedSocketType , " UnsupportedSocketType" )
1320
1322
, (Stream , " Stream" )
1321
- , (Datagram , " Datagram" )
1323
+ , (Datagram , " Datagram" )
1322
1324
, (Raw , " Raw" )
1323
1325
, (RDM , " RDM" )
1324
1326
, (SeqPacket , " SeqPacket" )
You can’t perform that action at this time.
0 commit comments