resources.functions: improve validation

This commit is contained in:
Andreas Deininger
2023-03-16 16:56:05 +01:00
committed by Bjørn Erik Pedersen
parent 891b2918d2
commit 05c095a0e6
2 changed files with 30 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ func newHash(algo string) (hash.Hash, error) {
case "sha512":
return sha512.New(), nil
default:
return nil, fmt.Errorf("unsupported crypto algo: %q, use either md5, sha256, sha384 or sha512", algo)
return nil, fmt.Errorf("unsupported hash algorithm: %q, use either md5, sha256, sha384 or sha512", algo)
}
}