fix: improve error handling for Baileys API unavailability (#166)

This commit is contained in:
Gabriel Jablonski 2025-12-12 11:29:15 -03:00 committed by GitHub
parent 774c168d94
commit 34b5b58d72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,8 @@ class Whatsapp::Providers::WhatsappBaileysService < Whatsapp::Providers::BaseSer
end
response.parsed_response.deep_symbolize_keys
rescue ProviderUnavailableError
raise
rescue StandardError => e
Rails.logger.error e.message
raise ProviderUnavailableError, 'Baileys API is unavailable'