Skip to content

Commit

Permalink
Merge pull request jnunemaker#148 from dscataglini/master
Browse files Browse the repository at this point in the history
httparty shouldn't swallow the backtrace
  • Loading branch information
greatuserongithub committed Sep 7, 2012
2 parents 892397d + 4e187b1 commit bfe79b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/httparty/parser.rb
Expand Up @@ -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.