summaryrefslogtreecommitdiff
path: root/src/testing
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
parent23f49379bb1423472564c8f1a13869b5c4044510 (diff)
downloadexchange-20c70845c038c4a1caa5d136aac452759d09209b.tar.gz
exchange-20c70845c038c4a1caa5d136aac452759d09209b.tar.bz2
exchange-20c70845c038c4a1caa5d136aac452759d09209b.zip
return more precise error codes from TALER_EXCHANGE_deposit() if failures are detected client-side (#6817)
Diffstat (limited to 'src/testing')
-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 0eb09bd3..a392884a 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;
}