diff --git a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java index 2c9cece42..52311e8ea 100644 --- a/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java +++ b/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java @@ -690,7 +690,7 @@ void read(ConnectionFlow flow, Object msg) { if (connectOk) { flow.advance(); } else { - flow.fail(); + flow.fail(new Error(msg.toString())); } } };