def cookbook_sync_failed(cookbooks, exception)
      expecting_exception(exception) do
        description = Chef::Formatters::ErrorMapper.cookbook_sync_failed(cookbooks, exception)
        display_error(description)
      end
    end
def cookbook_sync_failed(cookbooks, exception)
      expecting_exception(exception) do
        description = Chef::Formatters::ErrorMapper.cookbook_sync_failed(cookbooks, exception)
        display_error(description)
      end
    end
Called when an error occurs during cookbook sync