Permalink
Browse files

Merge pull request #148 from dscataglini/master

httparty shouldn't swallow the backtrace
  • Loading branch information...
2 parents 892397d + 4e187b1 commit bfe79b852ff753f9ce07aa39c891c97cc93635f1 @jnunemaker committed Sep 7, 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 bfe79b8

Please sign in to comment.