diff --git a/tools/remotecommand/websocket.go b/tools/remotecommand/websocket.go index 7e7703ca..cea26a0b 100644 --- a/tools/remotecommand/websocket.go +++ b/tools/remotecommand/websocket.go @@ -312,7 +312,7 @@ func (c *wsStreamCreator) readDemuxLoop(bufferSize int, period time.Duration, de if errRead == io.EOF { break } - c.closeAllStreamReaders(fmt.Errorf("read message: %w", err)) + c.closeAllStreamReaders(fmt.Errorf("read message: %w", errRead)) return } }