class Spaceship::Client::UnexpectedResponse

def initialize(error_info = nil)

def initialize(error_info = nil)
  super(error_info)
  @error_info = error_info
end

def preferred_error_info

def preferred_error_info
  return nil unless @error_info.kind_of?(Hash) && @error_info['resultString']
  [
    "Apple provided the following error info:",
    @error_info['resultString'],
    @error_info['userString']
  ].compact.uniq # sometimes 'resultString' and 'userString' are the same value
end