From 9bd4fa5008159870100dab7f765005ec4f26f3b1 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 5 Feb 2014 20:57:00 +0100 Subject: [PATCH] Make immediate write error only slightly less cryptic (fixes #51) --- protocol/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/protocol.go b/protocol/protocol.go index d919a06d1..717332e00 100644 --- a/protocol/protocol.go +++ b/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()