gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 01/02: Revert "only complain when neither order nor con


From: gnunet
Subject: [taler-merchant] 01/02: Revert "only complain when neither order nor contract is found"
Date: Tue, 29 Sep 2020 14:51:52 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

commit b8a813813642f2b6854f349a8e41e31cdfcf8ec3
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Sep 29 18:21:38 2020 +0530

    Revert "only complain when neither order nor contract is found"
    
    This reverts commit 6afa631b0e6881d35cf66985aafb117c9c6605e1.
---
 src/backend/taler-merchant-httpd_private-get-orders-ID.c | 7 +++++++
 1 file changed, 7 insertions(+)

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 74f38b3..829b3a5 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]