Skip to content

Commit

Permalink
Improve error message for concurrent modifications (bazelbuild#17396)
Browse files Browse the repository at this point in the history
Improve the error message logged when concurrent modifications
occur and --experimental_guard_against_concurrent_changes is set.

Co-authored-by: Tim Bain <[email protected]>
Co-authored-by: kshyanashree <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2023
1 parent 84c1ed4 commit 0759081
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ public void store(SpawnResult result) throws ExecException, InterruptedException
try (SilentCloseable c = prof.profile("RemoteCache.checkForConcurrentModifications")) {
checkForConcurrentModifications();
} catch (IOException | ForbiddenActionInputException e) {
remoteExecutionService.report(Event.warn(e.getMessage()));
String msg = "Skipping uploading outputs because of concurrent modifications " +
"with --experimental_guard_against_concurrent_changes enabled: " + e.getMessage();
remoteExecutionService.report(Event.warn(msg));
return;
}
}
Expand Down

0 comments on commit 0759081

Please sign in to comment.