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 80fadc1 commit 30df86bCopy full SHA for 30df86b
Network/Socket/Info.hsc
@@ -313,7 +313,7 @@ getAddrInfoList hints node service =
313
314
followAddrInfo :: Ptr AddrInfo -> IO (NonEmpty AddrInfo)
315
followAddrInfo ptr_ai
316
- | ptr_ai == nullPtr = error "fixme"
+ | ptr_ai == nullPtr = ioError $ mkIOError NoSuchThing "getaddrinfo must retuan at least one addrinfo" Nothing Nothing
317
| otherwise = do
318
a <- peek ptr_ai
319
ptr <- (# peek struct addrinfo, ai_next) ptr_ai
0 commit comments