Make immediate write error only slightly less cryptic (fixes #51)
This commit is contained in:
parent
89c2f61b30
commit
9bd4fa5008
|
@ -112,7 +112,7 @@ func NewConnection(nodeID string, reader io.Reader, writer io.Writer, receiver M
|
||||||
c.mwriter.writeOptions(options)
|
c.mwriter.writeOptions(options)
|
||||||
err := c.flush()
|
err := c.flush()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Warning:", err)
|
log.Println("Warning: Write error during initial handshake:", err)
|
||||||
}
|
}
|
||||||
c.nextId++
|
c.nextId++
|
||||||
c.Unlock()
|
c.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue