From 3a684ba3a9748918b60d84735c34023af4061a6d Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 5 Dec 2014 17:44:41 +0000 Subject: [PATCH] Fixed typo in error message --- router/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/connection.go b/router/connection.go index 72efc333..a22eeb27 100644 --- a/router/connection.go +++ b/router/connection.go @@ -410,7 +410,7 @@ func (conn *LocalConnection) handshake(acceptNewPeer bool) error { func checkHandshakeStringField(fieldName string, expectedValue string, handshake map[string]string) (string, error) { val, found := handshake[fieldName] if !found { - return "", fmt.Errorf("Field % is missing", fieldName) + return "", fmt.Errorf("Field %s is missing", fieldName) } if expectedValue != "" && val != expectedValue { return "", fmt.Errorf("Field %s has wrong value; expected '%s', received '%s'", fieldName, expectedValue, val)