diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java b/src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java index 8fb7ef29a6..bfac250546 100644 --- a/src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java +++ b/src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java @@ -75,8 +75,8 @@ final class WorkerSpawnStrategy implements SpawnActionContext { // persistent mode and then pass it the flagfile via a WorkRequest to make it actually do the // work. if (!Iterables.getLast(spawn.getArguments()).startsWith("@")) { - Preconditions.checkState( - false, "Must have parameter file as last arg, got args: " + spawn.getArguments()); + throw new IllegalStateException( + "Must have parameter file as last arg, got args: " + spawn.getArguments()); } FileOutErr outErr = actionExecutionContext.getFileOutErr(); |