1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-10-18 00:16:11 -04:00

Don't refer to public keys as secret keys in error

This constructor is used for public keys as well.

(cherry picked from commit 9cc550d652)
This commit is contained in:
Alyssa Ross 2024-08-31 15:59:18 +02:00 committed by Mergify
parent 1da3fd549e
commit 236a9f5c47

View file

@ -22,7 +22,7 @@ Key::Key(std::string_view s)
key = ss.payload;
if (name == "" || key == "")
throw Error("secret key is corrupt");
throw Error("key is corrupt");
key = base64Decode(key);
}