# File lib/slack-notifier/util/http_client.rb, line 26 def call http_obj.request(request_obj).tap do |response| unless response.is_a?(Net::HTTPSuccess) raise Slack::Notifier::APIError, "The slack API returned an error: \#{response.body} (HTTP Code \#{response.code})\nCheck the \"Handling Errors\" section on https://api.slack.com/incoming-webhooks for more information\n" end end end