Browse Source

error descriptions corrected

PYADPT-55
Volker Birk 6 years ago
parent
commit
b30dbd70cc
  1. 4
      src/basic_api.cc

4
src/basic_api.cc

@ -86,11 +86,11 @@ namespace pEp {
void key_reset_trust(Identity ident) void key_reset_trust(Identity ident)
{ {
if (ident.fpr() == "") if (ident.fpr() == "")
throw invalid_argument("address needed"); throw invalid_argument("fpr needed");
if (ident.address() == "") if (ident.address() == "")
throw invalid_argument("address needed"); throw invalid_argument("address needed");
if (ident.user_id() == "") if (ident.user_id() == "")
throw invalid_argument("address needed"); throw invalid_argument("user_id needed");
PEP_STATUS status = key_reset_trust(adapter.session(), ident); PEP_STATUS status = key_reset_trust(adapter.session(), ident);
_throw_status(status); _throw_status(status);

Loading…
Cancel
Save