From 4630b12802215c078c97c672f41de49fbc804c85 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 16 May 2019 13:30:43 -0700 Subject: [PATCH] Set worker exit_code to failure if copying files fails --- tools/worker/work_processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/worker/work_processor.cc b/tools/worker/work_processor.cc index 1a22ee035..7bcecf2f4 100644 --- a/tools/worker/work_processor.cc +++ b/tools/worker/work_processor.cc @@ -164,6 +164,7 @@ void WorkProcessor::ProcessWorkRequest( if (!CopyFile(expected_object_pair.second, expected_object_pair.first)) { std::cerr << "Could not copy " << expected_object_pair.second << " to " << expected_object_pair.first << " (errno " << errno << ")\n"; + exit_code = EXIT_FAILURE; } } }