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

This constructor is used for public keys as well.
This commit is contained in:
Alyssa Ross 2024-08-31 15:59:18 +02:00
parent b89eca9aec
commit 9cc550d652
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

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);
}