Method: Puppet::Forge::Errors::CommunicationError#multiline

Defined in:
lib/puppet/forge/errors.rb

#multilineString

Return a multiline version of the error message

Returns:

  • (String)

    the multiline version of the error message



61
62
63
64
65
66
67
68
# File 'lib/puppet/forge/errors.rb', line 61

def multiline
  _(<<-EOS).chomp % { uri: @uri, detail: @detail }
Could not connect to %{uri}
  There was a network communications problem
The error we caught said '%{detail}'
Check your network connection and try again
  EOS
end