aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_auditor_add_denomination.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_auditor_add_denomination.c')
-rw-r--r--src/lib/exchange_api_auditor_add_denomination.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/lib/exchange_api_auditor_add_denomination.c b/src/lib/exchange_api_auditor_add_denomination.c
index d8df605de..50bffd974 100644
--- a/src/lib/exchange_api_auditor_add_denomination.c
+++ b/src/lib/exchange_api_auditor_add_denomination.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of TALER 2 This file is part of TALER
3 Copyright (C) 2015-2020 Taler Systems SA 3 Copyright (C) 2015-2021 Taler Systems SA
4 4
5 TALER is free software; you can redistribute it and/or modify it under the 5 TALER is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software 6 terms of the GNU General Public License as published by the Free Software
@@ -106,13 +106,25 @@ handle_auditor_add_denomination_finished (void *cls,
106 break; 106 break;
107 default: 107 default:
108 /* unexpected response code */ 108 /* unexpected response code */
109 GNUNET_break_op (0); 109 if (NULL != json)
110 hr.ec = TALER_JSON_get_error_code (json); 110 {
111 hr.hint = TALER_JSON_get_error_hint (json); 111 hr.ec = TALER_JSON_get_error_code (json);
112 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 112 hr.hint = TALER_JSON_get_error_hint (json);
113 "Unexpected response code %u/%d for exchange auditor-add-denomination\n", 113 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
114 (unsigned int) response_code, 114 "Unexpected response code %u/%d for exchange auditor-add-denomination at URL `%s'\n",
115 (int) hr.ec); 115 (unsigned int) response_code,
116 (int) hr.ec,
117 ah->url);
118 }
119 else
120 {
121 hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
122 hr.hint = NULL;
123 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
124 "Unexpected HTTP response code %u (no JSON returned) at URL `%s'\n",
125 (unsigned int) response_code,
126 ah->url);
127 }
116 break; 128 break;
117 } 129 }
118 if (NULL != ah->cb) 130 if (NULL != ah->cb)