lib/slack/web/api/error.rb in slack-ruby-client-0.5.3 vs lib/slack/web/api/error.rb in slack-ruby-client-0.5.4

- old
+ new

@@ -2,10 +2,10 @@ module Web module Api class Error < ::Faraday::Error attr_reader :response - def initialize(message, response) + def initialize(message, response = nil) @response = response super message end end end