diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java index e291129f62..317888d073 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java +++ b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java @@ -121,8 +121,10 @@ public class ProtoOutputFormatter extends AbstractUnorderedFormatter { } @Override - public void close() throws IOException { - queryResult.build().writeTo(out); + public void close(boolean failFast) throws IOException { + if (!failFast) { + queryResult.build().writeTo(out); + } } }; } |