diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-22 12:59:32 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-22 12:59:32 +0200 |
commit | 515ae722f5a1c48e73a3cfb205719ec7443031b6 (patch) | |
tree | 8e0791b755e6f5d0e38d3556a7e8c5e9c643fb57 /src/lib/exchange_api_management_post_extensions.c | |
parent | 9f8dd896b3e8027f2020201fd9835543401f6eba (diff) | |
download | exchange-515ae722f5a1c48e73a3cfb205719ec7443031b6.tar.xz |
-misc minor fixes
Diffstat (limited to 'src/lib/exchange_api_management_post_extensions.c')
-rw-r--r-- | src/lib/exchange_api_management_post_extensions.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/lib/exchange_api_management_post_extensions.c b/src/lib/exchange_api_management_post_extensions.c index 99d1653d0..00d1c5e3f 100644 --- a/src/lib/exchange_api_management_post_extensions.c +++ b/src/lib/exchange_api_management_post_extensions.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2015-2021 Taler Systems SA + Copyright (C) 2015-2023 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -98,8 +98,19 @@ handle_post_extensions_finished (void *cls, per.hr.hint = TALER_JSON_get_error_hint (json); break; case MHD_HTTP_NOT_FOUND: - per.hr.ec = TALER_JSON_get_error_code (json); - per.hr.hint = TALER_JSON_get_error_hint (json); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Server did not find handler at `%s'. Did you configure the correct exchange base URL?\n", + ph->url); + if (NULL != json) + { + per.hr.ec = TALER_JSON_get_error_code (json); + per.hr.hint = TALER_JSON_get_error_hint (json); + } + else + { + per.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; + per.hr.hint = TALER_ErrorCode_get_hint (per.hr.ec); + } break; default: /* unexpected response code */ |