Skip to content

Commit

Permalink
Don't refer to public keys as secret keys in error
Browse files Browse the repository at this point in the history
This constructor is used for public keys as well.

(cherry picked from commit 9cc550d)
  • Loading branch information
alyssais authored and mergify[bot] committed Sep 23, 2024
1 parent 1da3fd5 commit 236a9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/signature/local-keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 236a9f5

Please sign in to comment.