diff --git a/src/jamidht/account_manager.cpp b/src/jamidht/account_manager.cpp index 7ef8b7ea38150caa1a7961dbfacfba8bde89ba7c..18e6b9580277db87c79586e35599e61001e1fd26 100644 --- a/src/jamidht/account_manager.cpp +++ b/src/jamidht/account_manager.cpp @@ -111,8 +111,9 @@ AccountManager::useIdentity( // match certificate chain auto contactList = std::make_unique<ContactList>(accountCertificate, path_, onChange); - if (not contactList->isValidAccountDevice(*identity.second)) { - JAMI_ERR("[Auth] can't use identity: device certificate chain can't be verified"); + auto result = contactList->isValidAccountDevice(*identity.second); + if (not result) { + JAMI_ERR("[Auth] can't use identity: device certificate chain can't be verified: %s", result.toString().c_str()); return nullptr; }