commit c3ad592bbe6fd1d2614e1b3c6e19669e6608c866
parent 2c961a557b9b59963a0456fc2713eea361b8e653
Author: Christian Blättler <blatc2@bfh.ch>
Date: Thu, 18 Apr 2024 15:01:50 +0200
use better error code
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1368,8 +1368,7 @@ set_token_authority (struct OrderContext *oc,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Token family slug unknown\n");
http_status = MHD_HTTP_NOT_FOUND;
- /* TODO: Add specific error code */
- ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
+ ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN;
break;
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
/* case listed to make compilers happy */
@@ -1379,7 +1378,7 @@ set_token_authority (struct OrderContext *oc,
reply_with_error (oc,
http_status,
ec,
- "authority_label");
+ "token_family_slug");
return MHD_NO;
}