summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders-ID.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-29 18:21:38 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-29 18:21:38 +0530
commitb8a813813642f2b6854f349a8e41e31cdfcf8ec3 (patch)
tree415400261bbee811b5a2efdaadd48cf424956949 /src/backend/taler-merchant-httpd_private-get-orders-ID.c
parent6afa631b0e6881d35cf66985aafb117c9c6605e1 (diff)
downloadmerchant-b8a813813642f2b6854f349a8e41e31cdfcf8ec3.tar.gz
merchant-b8a813813642f2b6854f349a8e41e31cdfcf8ec3.tar.bz2
merchant-b8a813813642f2b6854f349a8e41e31cdfcf8ec3.zip
Revert "only complain when neither order nor contract is found"
This reverts commit 6afa631b0e6881d35cf66985aafb117c9c6605e1.
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
index 74f38b32..829b3a56 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -848,6 +848,13 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
TALER_EC_GET_ORDERS_DB_FETCH_CONTRACT_TERMS_ERROR,
NULL);
}
+ if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
+ {
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_NOT_FOUND,
+ TALER_EC_GET_ORDERS_ORDER_NOT_FOUND,
+ hc->infix);
+ }
{
struct GNUNET_HashCode unused;