Permalink
Browse files

httparty shouldn't swallow the backtrace

  • Loading branch information...
1 parent 9c08f47 commit 4e187b1315ce836395668c099e02b5de273caba0 @dscataglini committed Jun 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/httparty/parser.rb
View
4 lib/httparty/parser.rb
@@ -138,8 +138,8 @@ def supports_format?
def parse_supported_format
send(format)
- rescue NoMethodError
- raise NotImplementedError, "#{self.class.name} has not implemented a parsing method for the #{format.inspect} format."
+ rescue NoMethodError => e
+ raise NotImplementedError, "#{self.class.name} has not implemented a parsing method for the #{format.inspect} format.", e.backtrace
end
end
end

0 comments on commit 4e187b1

Please sign in to comment.