Fix the bug that a Data cannot be returned
Change-Id: I4f48b1295ecd1eed44b1a604f692cc568b394055
diff --git a/src/challenge-module/challenge-email.cpp b/src/challenge-module/challenge-email.cpp
index 793eed7..e475b24 100644
--- a/src/challenge-module/challenge-email.cpp
+++ b/src/challenge-module/challenge-email.cpp
@@ -65,6 +65,10 @@
const auto& expectedEmail = json.get("email", "");
Name expectedPrefix(json.get(JSON_CA_NAME, ""));
if (expectedEmail != emailAddress || !expectedPrefix.isPrefixOf(request.m_cert.getName())) {
+ _LOG_ERROR("Cannot match with the PROBE token. Input email: " << emailAddress
+ << " Email in Token: " << expectedEmail
+ << " Requested Cert Name: " << request.m_cert.getName()
+ << " Identity Name got from Token: " << expectedPrefix);
return;
}
}