0
0
Fork 0

Add callback_url/acct information for Sidekiq PuSH workers Exception. (#4281)

* Add destination informations to exception on SubscribeWorker and DeliveryWorker.

* Simplify delivery error message.

* Prevent changing Exception type...

* fix typo.
This commit is contained in:
Clworld 2017-07-27 07:38:20 +09:00 committed by Eugen Rochko
parent f5e228ad2e
commit 994d948c39
3 changed files with 9 additions and 5 deletions

View file

@ -8,11 +8,11 @@ module Mastodon
class UnexpectedResponseError < Error
def initialize(response = nil)
@response = response
end
def to_s
"#{@response.uri} returned code #{@response.code}"
if response.respond_to? :uri
super("#{response.uri} returned code #{response.code}")
else
super
end
end
end
end