Improved error message

This commit is contained in:
M66B 2020-03-11 16:58:10 +01:00
parent b7c9472ced
commit bdf0ffd069
2 changed files with 2 additions and 1 deletions

View File

@ -5396,7 +5396,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (is == null) {
if (message.identity != null)
db.identity().setIdentitySignKeyAlias(message.identity, null);
throw new IllegalArgumentException(context.getString(R.string.title_invalid_key));
throw new IllegalArgumentException(context.getString(R.string.title_unknown_key));
}
}

View File

@ -817,6 +817,7 @@
<string name="title_certificate_invalid">Public key of %1$s is invalid</string>
<string name="title_no_key">No private key</string>
<string name="title_invalid_key">Invalid private key</string>
<string name="title_unknown_key">Private key does not match encryption key</string>
<string name="title_send_plain_text">Plain text only</string>
<string name="title_send_receipt">Request receipt</string>
<string name="title_send_receipt_remark">Most providers and email clients ignore receipt requests</string>