diff --git a/src/description.cpp b/src/description.cpp index e8803d6b5..e89fe1237 100644 --- a/src/description.cpp +++ b/src/description.cpp @@ -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)); });