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:
@ -16,6 +16,8 @@ class Pubsubhubbub::DeliveryWorker
|
||||
@subscription = Subscription.find(subscription_id)
|
||||
@payload = payload
|
||||
process_delivery unless blocked_domain?
|
||||
rescue => e
|
||||
raise e.class, "Delivery failed for #{subscription&.callback_url}: #{e.message}"
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user