aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-18 15:01:50 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-19 10:53:29 +0200
commitc3ad592bbe6fd1d2614e1b3c6e19669e6608c866 (patch)
tree83d609e4f25000e55c4d4eb1dff83df2796af3e4
parent2c961a557b9b59963a0456fc2713eea361b8e653 (diff)
use better error code
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c5
1 files 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
index 95603388..a281287a 100644
--- 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;
}