class Octokit::Error

def redact_url(url_string)

def redact_url(url_string)
  %w[client_secret access_token api_key].each do |token|
    if url_string.include? token
      url_string.gsub!(/#{token}=\S+/, "#{token}=(redacted)")
    end
  end
  url_string
end