diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-02-12 18:34:44 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-02-12 18:34:44 +0100 |
commit | f22ef3e40c7a5e16477578031d674f60582e76d8 (patch) | |
tree | 5bd455b8cf4c4db586c57785bb87ce92a17a58c5 | |
parent | 8315e151232dc0bea548cb9466c474a78a7140aa (diff) |
Fix passing of delta.
-rw-r--r-- | src/exchange-tools/taler-wire.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/exchange-tools/taler-wire.c b/src/exchange-tools/taler-wire.c index cff95858e..835e42004 100644 --- a/src/exchange-tools/taler-wire.c +++ b/src/exchange-tools/taler-wire.c @@ -208,6 +208,14 @@ execute_wire_transfer () struct TALER_Amount a; struct TALER_WireTransferIdentifierRawP wtid; + if (NULL == amount) + { + fprintf (stderr, + "The option -a: AMOUNT, is mandatory.\n"); + GNUNET_SCHEDULER_shutdown (); + return; + } + if (GNUNET_OK != TALER_string_to_amount (amount, &a)) { @@ -269,7 +277,7 @@ execute_history () TALER_BANK_DIRECTION_BOTH, since_when_bin, bin_len, - 10, + -10, history_cb, NULL)) { @@ -310,7 +318,7 @@ run (void *cls, if (NULL == account_section) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "The ACCOUNT-SECTION is mandatory.\n"); + "The option: -s ACCOUNT-SECTION, is mandatory.\n"); return; } |