reid před 2 roky
rodič
revize
c6f6d0b5ad
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)