mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 10:46:15 +02:00
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:
parent
b89eca9aec
commit
9cc550d652
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ Key::Key(std::string_view s)
|
||||||
key = ss.payload;
|
key = ss.payload;
|
||||||
|
|
||||||
if (name == "" || key == "")
|
if (name == "" || key == "")
|
||||||
throw Error("secret key is corrupt");
|
throw Error("key is corrupt");
|
||||||
|
|
||||||
key = base64Decode(key);
|
key = base64Decode(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue