aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-05-21 19:20:09 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-05-21 19:20:09 +0200
commitd36f1b3b6a6f99b3393eeefe61b23d18c710c1c2 (patch)
tree283f421a3a61d63eadbf7666f4db468ff4ede9ce /src/benchmark
parentaa8d44aab3af79429247b6cf74da59398600cde3 (diff)
downloadexchange-d36f1b3b6a6f99b3393eeefe61b23d18c710c1c2.tar.xz
-fix SQL
Diffstat (limited to 'src/benchmark')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c18
1 files changed, 12 insertions, 6 deletions
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
{