Added JID to log when failing to load PGP fingerprint

Added PGP stub for tests
This commit is contained in:
James Booth
2015-08-23 23:09:44 +01:00
parent 8501d1db33
commit b1ab4b2854
2 changed files with 6 additions and 1 deletions

View File

@@ -153,7 +153,7 @@ p_gpg_on_connect(const char * const barejid)
error = gpgme_get_key(ctx, keyid, &key, 1);
g_free(keyid);
if (error || key == NULL) {
log_error("GPG: Failed to get key. %s %s", gpgme_strsource(error), gpgme_strerror(error));
log_warning("GPG: Failed to get key for %s: %s %s", jid, gpgme_strsource(error), gpgme_strerror(error));
continue;
}