Skip to content

Commit

Permalink
Set worker exit_code to failure if copying files fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione committed May 16, 2019
1 parent bbd636a commit 4630b12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/worker/work_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 4630b12

Please sign in to comment.