Skip to content

Commit

Permalink
Update src/description.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
Sean-Der and paullouisageneau authored Jan 9, 2024
1 parent c772945 commit 1d6e743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/description.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void Description::hintType(Type type) {

void Description::setFingerprint(CertificateFingerprint f) {
if (!f.isValid())
throw std::invalid_argument("Invalid certificate fingerprint \"" + f.value + "\"");
throw std::invalid_argument("Invalid " + CertificateFingerprint::AlgorithmIdentifier(f.algorithm) + " fingerprint \"" + f.value + "\"");

std::transform(f.value.begin(), f.value.end(), f.value.begin(),
[](char c) { return char(std::toupper(c)); });
Expand Down

0 comments on commit 1d6e743

Please sign in to comment.