diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 23:29:15 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 23:29:15 +0800 |
commit | ad09066a8ef65c054b8bd2718b74c038ab139886 (patch) | |
tree | b95083f289f026fedacdbc5ab92a758fac7d5cad /src/lib/exchange_api_handle.c | |
parent | 219dfe1fcdfc848884856bd062d4c4a06c22a12c (diff) |
-minor code cleanup
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r-- | src/lib/exchange_api_handle.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index ed491c8bc..27ce85060 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -928,10 +928,18 @@ decode_keys_json (const json_t *resp_obj, GNUNET_JSON_spec_end () }; - EXITIF (GNUNET_OK != - GNUNET_JSON_parse (resp_obj, - sspec, - NULL, NULL)); + if (GNUNET_OK != + GNUNET_JSON_parse (resp_obj, + sspec, + &emsg, + &eline)) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Parsing /keys failed for `%s' (%u)\n", + emsg, + eline); + EXITIF (1); + } } key_data->currency = GNUNET_strdup (currency); |