def add_explanation(error_description)
case exception
when Net::HTTPServerException, Net::HTTPFatalError
humanize_http_exception(error_description)
when *NETWORK_ERROR_CLASSES
describe_network_errors(error_description)
when Chef::Exceptions::PrivateKeyMissing
error_description.section("Private Key Not Found:","Your private key could not be loaded. If the key file exists, ensure that it is\nreadable by chef-client.\n")
error_description.section("Relevant Config Settings:","client_key \"\#{api_key}\"\n")
else
error_description.section("Unexpected Error:","#{exception.class.name}: #{exception.message}")
end
end