Method: Chef::Formatters::ErrorMapper.registration_failed

Defined in:
lib/chef/formatters/error_mapper.rb

.registration_failed(node_name, exception, config) ⇒ Object

Failed to register this client with the server.



28
29
30
31
32
33
34
# File 'lib/chef/formatters/error_mapper.rb', line 28

def self.registration_failed(node_name, exception, config)
  error_inspector = ErrorInspectors::RegistrationErrorInspector.new(node_name, exception, config)
  headline = "Chef Infra Client encountered an error attempting to create the client \"#{node_name}\""
  description = ErrorDescription.new(headline)
  error_inspector.add_explanation(description)
  description
end