Actions
Feature #10129
openMore descriptive error message for failed net/http requests
Description
Hello,
I would like to propose the following patch:
Before
2.1.2 :003 > Net::HTTP.get(URI.parse("https://arsrtrtrstsrt.com/arstr"))
SocketError: getaddrinfo: nodename nor servname provided, or not known
After
2.1.2 :003 > Net::HTTP.get(URI.parse("https://arsrtrtrstsrt.com/arstr"))
SocketError: Failed to open TCP connection to arsrtrtrstsrt.com:443 (getaddrinfo: nodename nor servname provided, or not known)
I have an implementation with test at https://github.com/ruby/ruby/pull/700
Thank you for your consideration,
Xavier
Files
Actions
Like0
Like0Like0Like0Like0Like0