gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: warn, do not assert


From: gnunet
Subject: [taler-merchant] branch master updated: warn, do not assert
Date: Thu, 01 Apr 2021 10:58:49 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 3694bff7 warn, do not assert
3694bff7 is described below

commit 3694bff78bcb41c9ce545576a8d44ec617da5ad6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Apr 1 10:58:46 2021 +0200

    warn, do not assert
---
 src/backend/taler-merchant-httpd_private-get-orders-ID.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 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 e7f6a1a0..0e38b48c 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -928,7 +928,9 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler 
*rh,
         strcasecmp (TMH_currency,
                     gorc->contract_amount.currency))
     {
-      GNUNET_break (0);
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Currency `%s' of contract does not match our 
configuration!\n",
+                  gorc->contract_amount.currency);
       return TALER_MHD_reply_with_error (
         connection,
         MHD_HTTP_INTERNAL_SERVER_ERROR,
@@ -1061,7 +1063,8 @@ TMH_private_get_orders_ID (const struct 
TMH_RequestHandler *rh,
   if ( (! paid) &&
        (! order_only) )
   {
-    if (0 != GNUNET_TIME_absolute_get_remaining 
(gorc->sc.long_poll_timeout).rel_value_us)
+    if (0 != GNUNET_TIME_absolute_get_remaining (
+          gorc->sc.long_poll_timeout).rel_value_us)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                   "Suspending GET /private/orders/%s\n",
@@ -1115,7 +1118,8 @@ TMH_private_get_orders_ID (const struct 
TMH_RequestHandler *rh,
   }
 
   if ( (! paid) &&
-       (0 != GNUNET_TIME_absolute_get_remaining 
(gorc->sc.long_poll_timeout).rel_value_us) )
+       (0 != GNUNET_TIME_absolute_get_remaining (
+          gorc->sc.long_poll_timeout).rel_value_us) )
   {
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 "Suspending GET /private/orders/%s\n",

-- 
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]