Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Show error message on system error in results

Makes for better problem reporting even tough system errors
should be rare.
parent 9bf66ea8
......@@ -493,7 +493,11 @@ static QString formatSignature(const Signature &sig, const DecryptVerifyResult::
// Red
if ((sig.summary() & Signature::Red)) {
return text + i18n("The signature is invalid: %1", signatureSummaryToString(sig.summary()));
const QString ret = text + i18n("The signature is invalid: %1", signatureSummaryToString(sig.summary()));
if (sig.summary() & Signature::SysError) {
return ret + QStringLiteral(" (%1)").arg(QString::fromLocal8Bit(sig.status().asString()));
}
return ret;
}
// Key missing
......@@ -510,7 +514,11 @@ static QString formatSignature(const Signature &sig, const DecryptVerifyResult::
}
// Catch all fall through
return text + i18n("The signature is invalid: %1", signatureSummaryToString(sig.summary()));
const QString ret = text + i18n("The signature is invalid: %1", signatureSummaryToString(sig.summary()));
if (sig.summary() & Signature::SysError) {
return ret + QStringLiteral(" (%1)").arg(QString::fromLocal8Bit(sig.status().asString()));
}
return ret;
}
static QStringList format(const std::vector<Mailbox> &mbxs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment