Browse Source

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

Jakob Borg 11 years ago
parent
commit
9bd4fa5008
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protocol/protocol.go

+ 1 - 1
protocol/protocol.go

@@ -112,7 +112,7 @@ func NewConnection(nodeID string, reader io.Reader, writer io.Writer, receiver M
 			c.mwriter.writeOptions(options)
 			err := c.flush()
 			if err != nil {
-				log.Printf("Warning:", err)
+				log.Println("Warning: Write error during initial handshake:", err)
 			}
 			c.nextId++
 			c.Unlock()