From 06d12773eb4b9fd9b1c042cf6fe1df9c3a04243f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 10 Dec 2013 14:11:50 -0800 Subject: [PATCH] packer/rpc: improve logging for the MuxConn --- packer/rpc/muxconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/rpc/muxconn.go b/packer/rpc/muxconn.go index 87941b826..0663bc0c7 100644 --- a/packer/rpc/muxconn.go +++ b/packer/rpc/muxconn.go @@ -407,7 +407,7 @@ func (s *Stream) Write(p []byte) (int, error) { s.mu.Unlock() if state != streamStateEstablished { - return 0, fmt.Errorf("Stream in bad state to send: %d", state) + return 0, fmt.Errorf("Stream %d in bad state to send: %d", s.id, state) } return s.mux.write(s.id, muxPacketData, p)