aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_wire_disable.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-22 12:59:32 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-22 12:59:32 +0200
commit515ae722f5a1c48e73a3cfb205719ec7443031b6 (patch)
tree8e0791b755e6f5d0e38d3556a7e8c5e9c643fb57 /src/lib/exchange_api_management_wire_disable.c
parent9f8dd896b3e8027f2020201fd9835543401f6eba (diff)
downloadexchange-515ae722f5a1c48e73a3cfb205719ec7443031b6.tar.xz
-misc minor fixes
Diffstat (limited to 'src/lib/exchange_api_management_wire_disable.c')
-rw-r--r--src/lib/exchange_api_management_wire_disable.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/lib/exchange_api_management_wire_disable.c b/src/lib/exchange_api_management_wire_disable.c
index 30a010762..30749b0e4 100644
--- a/src/lib/exchange_api_management_wire_disable.c
+++ b/src/lib/exchange_api_management_wire_disable.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
@@ -99,8 +99,19 @@ handle_auditor_disable_finished (void *cls,
wdr.hr.hint = TALER_JSON_get_error_hint (json);
break;
case MHD_HTTP_NOT_FOUND:
- wdr.hr.ec = TALER_JSON_get_error_code (json);
- wdr.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",
+ wh->url);
+ if (NULL != json)
+ {
+ wdr.hr.ec = TALER_JSON_get_error_code (json);
+ wdr.hr.hint = TALER_JSON_get_error_hint (json);
+ }
+ else
+ {
+ wdr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
+ wdr.hr.hint = TALER_ErrorCode_get_hint (wdr.hr.ec);
+ }
break;
case MHD_HTTP_CONFLICT:
wdr.hr.ec = TALER_JSON_get_error_code (json);