summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-25 19:49:57 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-25 19:49:57 +0100
commit2771e50ebee0aba9d4bf701a580d099372627e0f (patch)
treee65fa35a80988920a646b9783482baa6295be4a0 /src/lib
parentebaa7e6c4068b2299b2001858e28341f8fe1bb8d (diff)
downloadmerchant-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.c5
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);