From 935c69a19fcd599f748a943f2c64f1d50bd02671 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Thu, 10 May 2012 13:05:56 -0400 Subject: [PATCH] adding better validation error reporting to the --rng option --- bin/nokogiri | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/nokogiri b/bin/nokogiri index ce66e7bbb5..976fcb8fec 100755 --- a/bin/nokogiri +++ b/bin/nokogiri @@ -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