lib/api_client/errors.rb in api_client-0.5.14 vs lib/api_client/errors.rb in api_client-0.5.15

- old
+ new

@@ -1,9 +1,10 @@ module ApiClient module Errors class ApiClientError < StandardError def initialize(message = nil, request = nil, response = nil) + message ||= "Status code: #{response.status}" if response super(message) @request = request @response = response end