Fixed typo in error message
This commit is contained in:
1 parent
086dbf9eef
commit
3a684ba3a9
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user