reid hace 2 años
padre
commit
c6f6d0b5ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)