reid пре 2 година
родитељ
комит
c6f6d0b5ad
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      auth/auth.go

+ 1 - 1
auth/auth.go

@@ -230,7 +230,7 @@ func KeyfileEncrypt(contents map[string]string, key string) (string, error) {
 	// convert key to bytes
 	keyBytes := []byte(key)
 	if len(keyBytes) != 32 {
-		return "", fmt.Errorf("key must be 32 bytes in length")
+		return "", fmt.Errorf("key must be 32 bytes in length; actual length:",len(keyBytes))
 	}
 	var keyArray [32]byte
 	copy(keyArray[:], keyBytes)