aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-22 23:29:15 +0800
committerChristian Grothoff <grothoff@gnunet.org>2023-12-22 23:29:15 +0800
commitad09066a8ef65c054b8bd2718b74c038ab139886 (patch)
treeb95083f289f026fedacdbc5ab92a758fac7d5cad /src/lib/exchange_api_handle.c
parent219dfe1fcdfc848884856bd062d4c4a06c22a12c (diff)
-minor code cleanup
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c16
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);