Skip to content

Commit 41fbacf

Browse files
committed
fix wrong exception
1 parent 6bd312b commit 41fbacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/google/devtools/build/lib/query2/query/output/StreamedProtoOutputFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public OutputFormatterCallback<Target> createPostFactoStreamCallback(
4444
public void processOutput(Iterable<Target> partialResult)
4545
throws IOException, InterruptedException {
4646
try {
47-
StreamSupport.stream(partialResult.spliterator(), /* parallel= */true)
47+
StreamSupport.stream(partialResult.spliterator(), /* parallel= */ true)
4848
.map(this::toProto)
4949
.map(StreamedProtoOutputFormatter::writeDelimited)
5050
.forEach(this::writeToOutputStreamThreadSafe);
@@ -67,7 +67,7 @@ private synchronized void writeToOutputStreamThreadSafe(ByteArrayOutputStream bo
6767
try {
6868
bout.writeTo(out);
6969
} catch (IOException e) {
70-
throw new RuntimeException(e);
70+
throw new WrappedIOException(e);
7171
}
7272
}
7373
};

0 commit comments

Comments
 (0)