[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: log nice message instead of cras
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: log nice message instead of crashing |
Date: |
Wed, 27 Oct 2021 13:24:43 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new ac79126f log nice message instead of crashing
ac79126f is described below
commit ac79126f1452e6c4aa1394c82de14ff0d99592ea
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Oct 27 13:24:41 2021 +0200
log nice message instead of crashing
---
src/bank-lib/fakebank.c | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 19c5e14f..8d9a82b1 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -1507,18 +1507,28 @@ handle_transfer (struct TALER_FAKEBANK_Handle *h,
return (GNUNET_NO == ret) ? MHD_YES : MHD_NO;
}
{
- int ret;
+ enum GNUNET_GenericReturnValue ret;
credit = TALER_xtalerbank_account_from_payto (credit_account);
- ret = make_transfer (h,
- account,
- credit,
- &amount,
- &wtid,
- base_url,
- &uuid,
- &row_id,
- &ts);
+ if (NULL == credit)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "`%s' is not a valid x-taler-bank account\n",
+ credit_account);
+ ret = GNUNET_SYSERR;
+ }
+ else
+ {
+ ret = make_transfer (h,
+ account,
+ credit,
+ &amount,
+ &wtid,
+ base_url,
+ &uuid,
+ &row_id,
+ &ts);
+ }
if (GNUNET_OK != ret)
{
MHD_RESULT res;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: log nice message instead of crashing,
gnunet <=