[#64517] Fw: Re: Ruby and Rails to become Apache Incubator Project — Tetsuya Kitahata <[email protected]>

What do you think? >> Ruby developers

13 messages 2014/08/23

[#64615] [ruby-trunk - Feature #10181] [Open] New method File.openat() — oss-ruby-lang@...

Issue #10181 has been reported by Technorama Ltd..

10 messages 2014/08/28
[#64616] Re: [ruby-trunk - Feature #10181] [Open] New method File.openat() — Eric Wong <normalperson@...> 2014/08/28

I like this feature.

[#64671] Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...>

Why this fix solve your problem?

9 messages 2014/08/30
[#64672] Re: Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...> 2014/08/30

(2014/08/30 8:50), SASADA Koichi wrote:

[ruby-core:64357] [ruby-trunk - Feature #10129] [Assigned] More descriptive error message for failed net/http requests

From: nobu@...
Date: 2014-08-14 09:35:41 UTC
List: ruby-core #64357
Issue #10129 has been updated by Nobuyoshi Nakada.

Category set to ext
Status changed from Open to Assigned
Assignee set to Akira Tanaka
Target version set to current: 2.2.0

Shouldn't `Socket` methods raise more descriptive messages?

https://github.com/nobu/ruby/compare/socket-error-message

----------------------------------------
Feature #10129: More descriptive error message for failed net/http requests
https://bugs.ruby-lang.org/issues/10129#change-48333

* Author: Xavier Shay
* Status: Assigned
* Priority: Low
* Assignee: Akira Tanaka
* Category: ext
* Target version: current: 2.2.0
----------------------------------------
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--------------------------------
net-http-error-message.diff (1.43 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next