From: contact@... Date: 2014-08-13T22:34:43+00:00 Subject: [ruby-core:64347] [ruby-trunk - Feature #10129] [Open] More descriptive error message for failed net/http requests Issue #10129 has been reported by Xavier Shay. ---------------------------------------- Feature #10129: More descriptive error message for failed net/http requests https://bugs.ruby-lang.org/issues/10129 * Author: Xavier Shay * Status: Open * Priority: Low * Assignee: * Category: * Target version: ---------------------------------------- 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 -- https://bugs.ruby-lang.org/