KEYCLOAK-16157 Fix Unexpected I/O error message
This commit is contained in:
parent
852c4a57ff
commit
030a077e99
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ package org.keycloak.testsuite.cli.exec;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.io.InterruptedIOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import static org.keycloak.testsuite.cli.exec.AbstractExec.copyStream;
|
import static org.keycloak.testsuite.cli.exec.AbstractExec.copyStream;
|
||||||
|
@ -19,6 +20,8 @@ class StreamReaderThread extends Thread {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
copyStream(is, os);
|
copyStream(is, os);
|
||||||
|
} catch (InterruptedIOException ignored) {
|
||||||
|
// Ignore, this is when the stream is terminated via signal upon exit
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException("Unexpected I/O error", e);
|
throw new RuntimeException("Unexpected I/O error", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in a new issue