Skip to content

Commit

Permalink
Suppress backtrace from Request#perform (mastodon#5174)
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda authored and Gargron committed Oct 2, 2017
1 parent c567c87 commit 01d6aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def add_headers(new_headers)
def perform
http_client.headers(headers).public_send(@verb, @url.to_s, @options)
rescue => e
raise e.class, "#{e.message} on #{@url}"
raise e.class, "#{e.message} on #{@url}", e.backtrace[0]
end

def headers
Expand Down

0 comments on commit 01d6aa0

Please sign in to comment.