Skip to content

Commit

Permalink
Use message instead of to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Feb 10, 2013
1 parent 4330c0b commit b06f011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/multi_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b06f011

Please sign in to comment.