lib/opener/constituent_parser/error_layer.rb in opener-constituent-parser-1.0.7 vs lib/opener/constituent_parser/error_layer.rb in opener-constituent-parser-1.0.8
- old
+ new
@@ -76,10 +76,11 @@
# Add the actual error to the errors layer.
#
def add_error
node = document.at('errors')
error_node = Nokogiri::XML::Node.new "error", node
- error_node['class'] = "#{klass.to_s} #{klass::VERSION}"
+ error_node['class'] = klass.to_s
+ error_node['version'] = klass::VERSION
error_node.inner_html = error
node.add_child(error_node)
end
end # ErrorLayer