packer/rpc: improve logging for the MuxConn

This commit is contained in:
Mitchell Hashimoto 2013-12-10 14:11:50 -08:00
parent 82bf5fc79e
commit 06d12773eb

View File

@ -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)