summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-28 12:31:24 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-28 12:31:24 +0100
commit9310bd13f9437b94fd0885d77b019d49bc674e3c (patch)
tree6ea5d5095051211312b2ce97ff87a3167c42f5f0
parentdd8c3e71a61dad9a609117eb98ed12993feda9a7 (diff)
downloadexchange-9310bd13f9437b94fd0885d77b019d49bc674e3c.tar.gz
exchange-9310bd13f9437b94fd0885d77b019d49bc674e3c.tar.bz2
exchange-9310bd13f9437b94fd0885d77b019d49bc674e3c.zip
improve logging, support case that is in the protocol client-side
-rw-r--r--src/exchange/taler-exchange-httpd_refund.c1
-rw-r--r--src/lib/exchange_api_refund.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c
index 33ead7c69..b8bcf7c60 100644
--- a/src/exchange/taler-exchange-httpd_refund.c
+++ b/src/exchange/taler-exchange-httpd_refund.c
@@ -158,6 +158,7 @@ refund_transaction (void *cls,
}
if (conflict)
{
+ GNUNET_break_op (0);
*mhd_ret = TEH_RESPONSE_reply_coin_insufficient_funds (
connection,
TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT,
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index 7401bfe4f..9159b55f2 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -323,6 +323,10 @@ handle_refund_finished (void *cls,
rr.hr.ec = TALER_JSON_get_error_code (j);
rr.hr.hint = TALER_JSON_get_error_hint (j);
break;
+ case MHD_HTTP_FAILED_DEPENDENCY:
+ rr.hr.ec = TALER_JSON_get_error_code (j);
+ rr.hr.hint = TALER_JSON_get_error_hint (j);
+ break;
case MHD_HTTP_PRECONDITION_FAILED:
if (GNUNET_OK !=
verify_failed_dependency_ok (rh,