added error notifications to pushover notification channel
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user