[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: nicer error handling
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: nicer error handling |
Date: |
Sun, 15 Mar 2020 22:38:19 +0100 |
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 69dd5657 nicer error handling
69dd5657 is described below
commit 69dd5657fc47d881315b6d515941d66e03c9a8bf
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Mar 15 22:38:17 2020 +0100
nicer error handling
---
src/exchange/taler-exchange-httpd_validation.c | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_validation.c
b/src/exchange/taler-exchange-httpd_validation.c
index e55100e1..f114607c 100644
--- a/src/exchange/taler-exchange-httpd_validation.c
+++ b/src/exchange/taler-exchange-httpd_validation.c
@@ -56,10 +56,14 @@ load_fee (const char *method)
if (NULL == fees)
return GNUNET_SYSERR;
/* Add fees to #wire_fee_object */
- GNUNET_assert (-1 !=
- json_object_set_new (wire_fee_object,
- method,
- fees));
+ if (0 !=
+ json_object_set_new (wire_fee_object,
+ method,
+ fees))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
return GNUNET_OK;
}
@@ -191,7 +195,17 @@ TEH_VALIDATION_init (const struct
GNUNET_CONFIGURATION_Handle *cfg)
ret = GNUNET_OK;
wire_accounts_array = json_array ();
+ if (NULL == wire_accounts_array)
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
wire_fee_object = json_object ();
+ if (NULL == wire_fee_object)
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
TALER_EXCHANGEDB_find_accounts (cfg,
&load_account,
&ret);
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: nicer error handling,
gnunet <=