Method: Mechanize::UnauthorizedError#to_s

Defined in:
lib/mechanize/unauthorized_error.rb

#to_sObject

[View source]

11
12
13
14
15
16
17
18
19
20
# File 'lib/mechanize/unauthorized_error.rb', line 11

def to_s
  out = super

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

  out
end