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:
parent
e9ddf0b400
commit
aff177d860
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue