From 9358b886f1249333a5049dab2b4e17fadc0213e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 1 Nov 2021 22:57:46 +0100 Subject: bugfix! --- src/testing/testing_api_cmd_recoup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/testing/testing_api_cmd_recoup.c') diff --git a/src/testing/testing_api_cmd_recoup.c b/src/testing/testing_api_cmd_recoup.c index d247e36a..745206e3 100644 --- a/src/testing/testing_api_cmd_recoup.c +++ b/src/testing/testing_api_cmd_recoup.c @@ -166,6 +166,7 @@ recoup_cb (void *cls, TALER_TESTING_interpreter_fail (is); return; } + (void) idx; /* do NOT use! We ignore 'idx', must be 0 for melt! */ reserve_cmd = TALER_TESTING_interpreter_lookup_command (is, cref); @@ -198,9 +199,13 @@ recoup_cb (void *cls, } if (GNUNET_OK != TALER_TESTING_get_trait_coin_priv (melt_cmd, - idx, + 0, &dirty_priv)) { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Coin %u not found in command %s\n", + 0, + ps->melt_reference); GNUNET_break (0); TALER_TESTING_interpreter_fail (is); return; -- cgit v1.2.3