Skip to content

Commit

Permalink
improve the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Sep 3, 2024
1 parent 80fadc1 commit 30df86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket/Info.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30df86b

Please sign in to comment.