[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 04/08: exit more nicely if command line ar
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 04/08: exit more nicely if command line arguments were wrong |
Date: |
Tue, 17 Oct 2017 19:53:53 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit e4fe0dc87eb484f045919a441cacfee3d5c94c31
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Oct 17 14:03:31 2017 +0200
exit more nicely if command line arguments were wrong
---
src/benchmark/taler-exchange-benchmark.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c
b/src/benchmark/taler-exchange-benchmark.c
index 7e3d285..93afb68 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) &&
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (eda7e1c -> 58528f3), gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 01/08: assertion only holds if we did get results, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 03/08: make --wire argument mandatory, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 04/08: exit more nicely if command line arguments were wrong,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 08/08: update docs, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 05/08: actually properly implement API wrt return value handling, even if not used today, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 06/08: report if DK lacks auditor signature, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 07/08: fix matching of auditor keys/denomination issues so that we return _all_ applicable auditor signatures, instead of a tiny subset, gnunet, 2017/10/17
- [GNUnet-SVN] [taler-exchange] 02/08: add JSON auditor output samples, gnunet, 2017/10/17