Fixed typo in error message

This commit is contained in:
Bryan Boreham committed 2014-12-05 17:44:41 +00:00
1 parent 086dbf9eef
commit 3a684ba3a9
1 file changed
+1 -1
+1 -1
View File
@@ -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)