Make immediate write error only slightly less cryptic (fixes #51)

This commit is contained in:
Jakob Borg 2014-02-05 20:57:00 +01:00
parent 89c2f61b30
commit 9bd4fa5008
1 changed files with 1 additions and 1 deletions

View File

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