diff options
| author | Christian Grothoff <grothoff@gnunet.org> | 2023-05-21 19:20:09 +0200 | 
|---|---|---|
| committer | Christian Grothoff <grothoff@gnunet.org> | 2023-05-21 19:20:09 +0200 | 
| commit | d36f1b3b6a6f99b3393eeefe61b23d18c710c1c2 (patch) | |
| tree | 283f421a3a61d63eadbf7666f4db468ff4ede9ce /src/benchmark | |
| parent | aa8d44aab3af79429247b6cf74da59398600cde3 (diff) | |
-fix SQL
Diffstat (limited to 'src/benchmark')
| -rw-r--r-- | src/benchmark/taler-exchange-benchmark.c | 18 | 
1 files changed, 12 insertions, 6 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index 7170648f..d076fb80 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    {  | 
