Project

General

Profile

Actions

Feature #5987

closed

IPAddr#initialize should display the invalid address when raising ArgumentError

Feature #5987: IPAddr#initialize should display the invalid address when raising ArgumentError

Added by postmodern (Hal Brodigan) over 13 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
-
[ruby-core:42445]

Description

I noticed that when IPAddr#initialize raises an ArgumentError on invalid addresses, it does not include the offending address in the exception message. This makes debugging difficult.

Actions

Also available in: PDF Atom