1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Elaborate the "unknown hash algorithm" error

List the allowed hash formats
This commit is contained in:
Yueh-Shun Li 2023-10-09 11:00:14 +08:00
parent e9ddf0b400
commit aff177d860
2 changed files with 2 additions and 2 deletions

View file

@ -1084,7 +1084,7 @@ namespace nix {
ASSERT_TRACE1("hashString \"foo\" \"content\"",
UsageError,
hintfmt("unknown hash algorithm '%s'", "foo"));
hintfmt("unknown hash algorithm '%s', expect 'md5', 'sha1', 'sha256', or 'sha512'", "foo"));
ASSERT_TRACE2("hashString \"sha256\" {}",
TypeError,