Invalid private key error message

This commit is contained in:
M66B 2020-11-13 18:41:06 +01:00
parent 2092bd7b5c
commit d4e8e76d29
1 changed files with 3 additions and 1 deletions

View File

@ -2710,7 +2710,9 @@ public class FragmentCompose extends FragmentBase {
try {
chain[0].checkValidity();
} catch (CertificateException ex) {
throw new IllegalArgumentException(context.getString(R.string.title_invalid_key), ex);
String msg = ex.getMessage();
throw new IllegalArgumentException(
TextUtils.isEmpty(msg) ? Log.formatThrowable(ex) : msg);
}
// Check public key email