diff --git a/Network/Socket/Info.hsc b/Network/Socket/Info.hsc index 3ebba95f..260b42aa 100644 --- a/Network/Socket/Info.hsc +++ b/Network/Socket/Info.hsc @@ -313,7 +313,7 @@ getAddrInfoList hints node service = followAddrInfo :: Ptr AddrInfo -> IO (NonEmpty AddrInfo) followAddrInfo ptr_ai - | ptr_ai == nullPtr = error "fixme" + | ptr_ai == nullPtr = ioError $ mkIOError NoSuchThing "getaddrinfo must retuan at least one addrinfo" Nothing Nothing | otherwise = do a <- peek ptr_ai ptr <- (# peek struct addrinfo, ai_next) ptr_ai