diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-24 10:02:36 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-24 10:02:36 +0900 |
commit | 14503eee785f77881c6479501d65a79f2b8c18e5 (patch) | |
tree | d2745c726d6866990f1e603c9758cdcce7b978a3 /src/namestore | |
parent | bb469c915099839cdba380d0e7e436d4971b6431 (diff) | |
download | gnunet-14503eee785f77881c6479501d65a79f2b8c18e5.tar.gz gnunet-14503eee785f77881c6479501d65a79f2b8c18e5.zip |
-always output error hint
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index 2618b4ca0..e02b1fde2 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -336,8 +336,7 @@ do_error (void *cls) | |||
336 | const char* emsg; | 336 | const char* emsg; |
337 | int response_code; | 337 | int response_code; |
338 | 338 | ||
339 | if (0 != handle->ec) | 339 | emsg = GNUNET_strdup (GNUNET_ErrorCode_get_hint (handle->ec)); |
340 | emsg = GNUNET_strdup (GNUNET_ErrorCode_get_hint (handle->ec)); | ||
341 | json_object_set_new (json_error, "error", json_string (emsg)); | 340 | json_object_set_new (json_error, "error", json_string (emsg)); |
342 | json_object_set_new (json_error, "error_code", json_integer (handle->ec)); | 341 | json_object_set_new (json_error, "error_code", json_integer (handle->ec)); |
343 | response_code = GNUNET_ErrorCode_get_http_status (handle->ec); | 342 | response_code = GNUNET_ErrorCode_get_http_status (handle->ec); |