Skip to content

Commit

Permalink
Merge pull request #196 from rdoherty-fastly/include-input-when-throw…
Browse files Browse the repository at this point in the history
…ing-error

Include the DNS record received when unable to parse a CAA record
  • Loading branch information
alexdalitz authored Jun 21, 2024
2 parents 4be7085 + 7c6cb2e commit a286841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dnsruby/resource/CAA.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def flag
def from_string(input) #:nodoc: all
matches = (/(\d+) (issuewild|issuemail|issue|iodef|contactemail|contactphone) "(.+)"$/).match(input)
if matches.nil?
raise DecodeError.new("Cannot parse record")
raise DecodeError.new("Cannot parse record: #{input[0...1000]}")
end
@flag = matches[1]
@property_tag = matches[2]
Expand Down

0 comments on commit a286841

Please sign in to comment.