gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: return error code from taler-mer


From: gnunet
Subject: [taler-merchant] branch master updated: return error code from taler-merchant-exchange if ever any transaction had an issue
Date: Mon, 01 Apr 2024 20:34:53 +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 ab8e426c return error code from taler-merchant-exchange if ever any 
transaction had an issue
ab8e426c is described below

commit ab8e426cae07d43ec7862c9ea9cc4279902bde8b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Apr 1 20:34:50 2024 +0200

    return error code from taler-merchant-exchange if ever any transaction had 
an issue
---
 src/backend/taler-merchant-exchange.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/backend/taler-merchant-exchange.c 
b/src/backend/taler-merchant-exchange.c
index e499589e..80802956 100644
--- a/src/backend/taler-merchant-exchange.c
+++ b/src/backend/taler-merchant-exchange.c
@@ -237,6 +237,11 @@ static struct GNUNET_DB_EventHandler *eh;
  */
 static unsigned int active_inquiries;
 
+/**
+ * Set to true if we ever encountered any problem.
+ */
+static bool found_problem;
+
 /**
  * Value to return from main(). 0 on success, non-zero on errors.
  */
@@ -394,6 +399,8 @@ update_transaction_status (const struct Inquiry *w,
 {
   enum GNUNET_DB_QueryStatus qs;
 
+  if (failed)
+    found_problem = true;
   qs = db_plugin->update_transfer_status (db_plugin->cls,
                                           w->exchange->exchange_url,
                                           &w->wtid,
@@ -1273,6 +1280,9 @@ main (int argc,
     return EXIT_INVALIDARGUMENT;
   if (GNUNET_NO == ret)
     return EXIT_SUCCESS;
+  if ( (found_problem) &&
+       (0 == global_ret) )
+    global_ret = 7;
   return global_ret;
 }
 

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