lib/slack/web/api/error.rb in slack-ruby-client-0.4.0 vs lib/slack/web/api/error.rb in slack-ruby-client-0.5.0

- old
+ new

@@ -1,8 +1,14 @@ module Slack module Web module Api class Error < ::Faraday::Error + attr_reader :response + + def initialize(message, response) + @response = response + super message + end end end end end