-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
After changes from #16 and removing of
rescue InvalidAddressError => e
raise e.class, "#{e.message}: #{addr}"
exception no longer returns proper exception message with invalid ip address.
ruby 3.0
> IPAddr.new('192.168.0.1000')
ipaddr.rb:598:in `rescue in initialize': invalid address: 192.168.0.1000 (IPAddr::InvalidAddressError)
ruby 3.1
> IPAddr.new('192.168.0.1000')
ipaddr.rb:656:in `block in in_addr': invalid address: (IPAddr::InvalidAddressError)
Best regards,
Georgi.
dminchev, tenpaiyomi, maeda-m, tatethurston, corrupt952 and 1 more
Metadata
Metadata
Assignees
Labels
No labels