def parse_error_detail(e_ary)
      e_detail = e_ary.select { |x| x.is_a?(Hash) && x.key?('errorDetail') }[0]
      return nil unless e_detail.is_a?(Hash)
      return e_detail['message'] if e_detail.key?('message')
      return e_detail['error'] if e_detail.key?('error')
    end
def parse_error_detail(e_ary)
      e_detail = e_ary.select { |x| x.is_a?(Hash) && x.key?('errorDetail') }[0]
      return nil unless e_detail.is_a?(Hash)
      return e_detail['message'] if e_detail.key?('message')
      return e_detail['error'] if e_detail.key?('error')
    end
Gets the error message from the *errorDetail* field.

 @param e_ary [Array<Hash>] The list of JSON messages already parsed.

 @return [String] The error message string.

 @api private