aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-24 19:54:47 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-24 19:54:47 +0200
commit20c70845c038c4a1caa5d136aac452759d09209b (patch)
tree0dea4fa37dd35e1af29b8c8aef6e9fd20de0d070 /src/testing/testing_api_cmd_deposit.c
parent23f49379bb1423472564c8f1a13869b5c4044510 (diff)
downloadexchange-20c70845c038c4a1caa5d136aac452759d09209b.tar.xz
return more precise error codes from TALER_EXCHANGE_deposit() if failures are detected client-side (#6817)
Diffstat (limited to 'src/testing/testing_api_cmd_deposit.c')
-rw-r--r--src/testing/testing_api_cmd_deposit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c
index 0eb09bd39..a392884a0 100644
--- a/src/testing/testing_api_cmd_deposit.c
+++ b/src/testing/testing_api_cmd_deposit.c
@@ -296,6 +296,7 @@ deposit_run (void *cls,
struct GNUNET_TIME_Absolute wire_deadline;
struct TALER_MerchantPublicKeyP merchant_pub;
struct GNUNET_HashCode h_contract_terms;
+ enum TALER_ErrorCode ec;
(void) cmd;
ds->is = is;
@@ -429,10 +430,14 @@ deposit_run (void *cls,
ds->refund_deadline,
&coin_sig,
&deposit_cb,
- ds);
+ ds,
+ &ec);
if (NULL == ds->dh)
{
GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Could not create deposit with EC %d\n",
+ (int) ec);
TALER_TESTING_interpreter_fail (is);
return;
}