Skip to content

Commit

Permalink
Merge pull request #675 from radez/master
Browse files Browse the repository at this point in the history
adding better validation error reporting to the --rng option
  • Loading branch information
flavorjones committed Jun 5, 2012
2 parents 75ecc99 + 935c69a commit 2819031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/nokogiri
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ end
@doc = parse_class.parse(open(uri).read, nil, encoding)

if @rng
puts @rng.validate(@doc)
@rng.validate(@doc).each do |error|
puts error.message
end
else
puts "Your document is stored in @doc..."
IRB.start
Expand Down

0 comments on commit 2819031

Please sign in to comment.