summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-07-11 12:49:26 +0200
committerChristian Grothoff <christian@grothoff.org>2022-07-11 12:49:26 +0200
commit6741a252e5f69cae36a2119fd183b26539863784 (patch)
tree28d145aafe0b6c6f32b8b4c91235a0231b10ffbe /src
parent145ed59d9aff58e705790f9bda7e1ef80b069d4e (diff)
downloadmerchant-6741a252e5f69cae36a2119fd183b26539863784.tar.gz
merchant-6741a252e5f69cae36a2119fd183b26539863784.tar.bz2
merchant-6741a252e5f69cae36a2119fd183b26539863784.zip
-use better EC
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c
index 910d53fc..53260f67 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -1195,11 +1195,10 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
{
/* Authentication provided but wrong. */
GNUNET_break_op (0);
- /* FIXME: use better error code */
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_FORBIDDEN,
- TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_TOKEN,
- "authentication with h_contract provided but wrong");
+ TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_HASH,
+ NULL);
}
if (! (token_match ||