From d36f1b3b6a6f99b3393eeefe61b23d18c710c1c2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 May 2023 19:20:09 +0200 Subject: -fix SQL --- src/benchmark/taler-exchange-benchmark.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/benchmark/taler-exchange-benchmark.c') diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index 7170648f9..d076fb806 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -1063,12 +1063,18 @@ main (int argc, { /* If we use the fakebank, we MUST reset the database as the fakebank will have forgotten everything... */ - GNUNET_assert (GNUNET_OK == - TALER_TESTING_prepare_exchange (cfg_filename, - (GNUNET_YES == use_fakebank) - ? GNUNET_YES - : GNUNET_NO, - &ec)); + if (GNUNET_OK != + TALER_TESTING_prepare_exchange (cfg_filename, + (GNUNET_YES == use_fakebank) + ? GNUNET_YES + : GNUNET_NO, + &ec)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Failed to prepare the exchange for launch\n"); + GNUNET_free (cfg_filename); + return BAD_CONFIG_FILE; + } } else { -- cgit v1.2.3