From 2771e50ebee0aba9d4bf701a580d099372627e0f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Oct 2020 19:49:57 +0100 Subject: fix logging of expected problems --- src/lib/merchant_api_get_instance.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/merchant_api_get_instance.c') diff --git a/src/lib/merchant_api_get_instance.c b/src/lib/merchant_api_get_instance.c index 35250bf6..ed208ba7 100644 --- a/src/lib/merchant_api_get_instance.c +++ b/src/lib/merchant_api_get_instance.c @@ -195,6 +195,11 @@ handle_get_instance_finished (void *cls, GNUNET_JSON_parse_free (spec); break; } + case MHD_HTTP_NOT_FOUND: + /* instance does not exist */ + hr.ec = TALER_JSON_get_error_code (json); + hr.hint = TALER_JSON_get_error_hint (json); + break; default: /* unexpected response code */ hr.ec = TALER_JSON_get_error_code (json); -- cgit v1.2.3