[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: improve error reporting
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: improve error reporting |
Date: |
Wed, 14 Jul 2021 16:36:37 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new e518936 improve error reporting
e518936 is described below
commit e51893620de330d7f8dd09eb72eb2a5e5c04d07d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 14 16:36:35 2021 +0200
improve error reporting
---
src/reducer/anastasis_api_recovery_redux.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/reducer/anastasis_api_recovery_redux.c
b/src/reducer/anastasis_api_recovery_redux.c
index d2d99f8..fe18148 100644
--- a/src/reducer/anastasis_api_recovery_redux.c
+++ b/src/reducer/anastasis_api_recovery_redux.c
@@ -1552,6 +1552,7 @@ change_version (json_t *state,
&provider_url),
GNUNET_JSON_spec_end ()
};
+ json_t *ia;
json_t *args;
struct ANASTASIS_ReduxAction *ra;
@@ -1567,12 +1568,23 @@ change_version (json_t *state,
"'version' invalid");
return NULL;
}
+ GNUNET_assert (NULL != provider_url);
+ ia = json_object_get (state,
+ "identity_attributes");
+ if (NULL == ia)
+ {
+ GNUNET_break (0);
+ ANASTASIS_redux_fail_ (cb,
+ cb_cls,
+ TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
+ "'identity_attributes' missing");
+ return NULL;
+ }
args = json_pack ("{s:I, s:O, s:s}",
"version",
(json_int_t) version,
"identity_attributes",
- json_object_get (state,
- "identity_attributes"),
+ ia,
"provider_url",
provider_url);
if (NULL == args)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: improve error reporting,
gnunet <=