mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
resources.functions: improve validation
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
891b2918d2
commit
05c095a0e6
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user