diff --git a/lib/multi_xml.rb b/lib/multi_xml.rb index 15314ae..cd13a92 100644 --- a/lib/multi_xml.rb +++ b/lib/multi_xml.rb @@ -129,7 +129,7 @@ def parse(xml, options={}) rescue DisallowedTypeError raise rescue parser.parse_error => error - raise ParseError, error.to_s, error.backtrace + raise ParseError, error.message, error.backtrace end hash = symbolize_keys(hash) if options[:symbolize_keys] hash