diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-20 20:03:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-20 20:03:59 +0100 |
commit | 4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993 (patch) | |
tree | 4780bcb1ed882dee315bd11ac1033ac333704654 /src/lib/exchange_api_refreshes_reveal.c | |
parent | d986555355de315121f1285c04ccc89082ba9755 (diff) | |
download | exchange-4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993.tar.xz |
do not log error on MHD_HTTP_GONE status code, revocation is a legitimate reply
Diffstat (limited to 'src/lib/exchange_api_refreshes_reveal.c')
-rw-r--r-- | src/lib/exchange_api_refreshes_reveal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c index 642ed6c9a..c51e30b01 100644 --- a/src/lib/exchange_api_refreshes_reveal.c +++ b/src/lib/exchange_api_refreshes_reveal.c @@ -255,6 +255,11 @@ handle_refresh_reveal_finished (void *cls, hr.ec = TALER_JSON_get_error_code (j); hr.hint = TALER_JSON_get_error_hint (j); break; + case MHD_HTTP_GONE: + /* Server claims key expired or has been revoked */ + hr.ec = TALER_JSON_get_error_code (j); + hr.hint = TALER_JSON_get_error_hint (j); + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: /* Server had an internal issue; we should retry, but this API leaves this to the application */ @@ -267,7 +272,7 @@ handle_refresh_reveal_finished (void *cls, hr.ec = TALER_JSON_get_error_code (j); hr.hint = TALER_JSON_get_error_hint (j); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected response code %u/%d\n", + "Unexpected response code %u/%d for exchange refreshes reveal\n", (unsigned int) response_code, (int) hr.ec); break; |