# File lib/mechanize/unauthorized_error.rb, line 10
  def to_s
    out = super

    if @challenges then
      realms = @challenges.map { |challenge| challenge.realm_name }.join ', '
      out << " -- available realms: #{realms}"
    end

    out
  end