diff --git a/extensions/notifications/channels/pushover.rb b/extensions/notifications/channels/pushover.rb index 1e546dbb0..4424d147b 100644 --- a/extensions/notifications/channels/pushover.rb +++ b/extensions/notifications/channels/pushover.rb @@ -13,10 +13,14 @@ module Channels # Configure the Pushover Client client = Rushover::Client.new(@config.get('beef.extension.notifications.pushover.app_key')) - client.notify(@config.get('beef.extension.notifications.pushover.user_key'), message) + res = client.notify(@config.get('beef.extension.notifications.pushover.user_key'), message) + print_error '[Notifications] Pushover notification failed' unless res.ok? + rescue Exception => e + print_error "[Notifications] Pushover notification initalization failed: '#{e.message}'" end end end end end end +