Project

General

Profile

« Previous | Next » 

Revision 2b2450ba

Added by nobu (Nobuyoshi Nakada) almost 9 years ago

Made #decode_rdata client to catch errors

  • lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#get_rr):
    re-raise an exception from decode_rdata as DecodeError, so it
    can report them to the top in more informative way. It was not
    reflecting on errors of data and thus breaking. Client code
    expects DecodeError and knows how to handle broken messages.
    [Fix GH-1511]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e