summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_kyc-proof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_kyc-proof.c')
-rw-r--r--src/exchange/taler-exchange-httpd_kyc-proof.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-proof.c b/src/exchange/taler-exchange-httpd_kyc-proof.c
index 7bd9fdaa6..6bd98abfe 100644
--- a/src/exchange/taler-exchange-httpd_kyc-proof.c
+++ b/src/exchange/taler-exchange-httpd_kyc-proof.c
@@ -168,10 +168,19 @@ persist_kyc_ok (void *cls,
MHD_RESULT *mhd_ret)
{
struct KycProofContext *kpc = cls;
+ enum GNUNET_DB_QueryStatus qs;
- return TEH_plugin->set_kyc_ok (TEH_plugin->cls,
- kpc->payment_target_uuid,
- kpc->id);
+ qs = TEH_plugin->set_kyc_ok (TEH_plugin->cls,
+ kpc->payment_target_uuid,
+ kpc->id);
+ if (GNUNET_DB_STATUS_HARD_ERROR == qs)
+ {
+ GNUNET_break (0);
+ *mhd_ret = TALER_MHD_reply_with_ec (connection,
+ TALER_EC_GENERIC_DB_STORE_FAILED,
+ "set_kyc_ok");
+ }
+ return qs;
}