module ChefCLI::NestedExceptionWithInspector

def inspector_for(exception)

def inspector_for(exception)
  if exception.respond_to?(:response)
    ServiceExceptionInspectors::HTTP.new(exception)
  else
    ServiceExceptionInspectors::Base.new(exception)
  end
end