summaryrefslogtreecommitdiff
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-18 15:01:50 +0200
commit8a169633abde878a2b2fc9cb0d9b24ef9b1bd540 (patch)
tree319d4946f41321d65f05bf25b900c5ae59d26abc
parentb41d4002a97f2c3ca22b4d0d7521d418699de7ce (diff)
downloadmerchant-8a169633abde878a2b2fc9cb0d9b24ef9b1bd540.tar.gz
merchant-8a169633abde878a2b2fc9cb0d9b24ef9b1bd540.tar.bz2
merchant-8a169633abde878a2b2fc9cb0d9b24ef9b1bd540.zip
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 b2070bcc..ff885576 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;
}