diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-25 19:49:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-25 19:49:57 +0100 |
commit | 2771e50ebee0aba9d4bf701a580d099372627e0f (patch) | |
tree | e65fa35a80988920a646b9783482baa6295be4a0 /src/lib | |
parent | ebaa7e6c4068b2299b2001858e28341f8fe1bb8d (diff) | |
download | merchant-2771e50ebee0aba9d4bf701a580d099372627e0f.tar.gz merchant-2771e50ebee0aba9d4bf701a580d099372627e0f.tar.bz2 merchant-2771e50ebee0aba9d4bf701a580d099372627e0f.zip |
fix logging of expected problems
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/merchant_api_get_instance.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |