aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark/taler-exchange-benchmark.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-17 14:03:31 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-17 19:53:43 +0200
commite4fe0dc87eb484f045919a441cacfee3d5c94c31 (patch)
tree389184a4e1990f25f59203111006558e504faa34 /src/benchmark/taler-exchange-benchmark.c
parentfbc685a76c81a540ef76f8bc7ddcfd77807e4faf (diff)
exit more nicely if command line arguments were wrong
Diffstat (limited to 'src/benchmark/taler-exchange-benchmark.c')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
index 7e3d28570..93afb683b 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -1599,7 +1599,12 @@ main (int argc,
GNUNET_assert (COIN_VALUE <= (1LL << REFRESH_SLOTS_NEEDED));
ret = GNUNET_GETOPT_run ("taler-exchange-benchmark",
options, argc, argv);
- GNUNET_assert (GNUNET_SYSERR != ret);
+ if (GNUNET_SYSERR == ret)
+ {
+ fprintf (stderr,
+ "Invalid command line arguments\n");
+ return 1;
+ }
if (GNUNET_NO == ret)
return 0;
if ( (0 != num_iterations) &&