[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: handle denomination key not foun
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: handle denomination key not found better |
Date: |
Tue, 24 Dec 2019 15:58:26 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 32ec6554 handle denomination key not found better
32ec6554 is described below
commit 32ec655418efc922f525ac6bce473238425a123b
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Dec 24 15:58:23 2019 +0100
handle denomination key not found better
---
src/auditor/taler-auditor.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 6e4c76a9..5c28daa0 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -765,6 +765,8 @@ get_denomination_info_by_hash (const struct GNUNET_HashCode
*dh,
&master_pub,
&add_denomination,
NULL);
+ if (qs <= 0)
+ return qs;
i = GNUNET_CONTAINER_multihashmap_get (denominations,
dh);
if (NULL != i)
@@ -773,7 +775,8 @@ get_denomination_info_by_hash (const struct GNUNET_HashCode
*dh,
*issue = i;
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
}
- /* nope, definitively not there, hard error */
+ /* This should be impossible; hard error */
+ GNUNET_break (0);
return GNUNET_DB_STATUS_HARD_ERROR;
}
@@ -1129,6 +1132,11 @@ handle_reserve_out (void *cls,
if (0 > qs)
{
GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs);
+ if (GNUNET_DB_STATUS_HARD_ERROR == qs)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Hard database error trying to get denomination %s (%s) from
database!\n",
+ TALER_B2S (denom_pub),
+ TALER_amount2s (amount_with_fee));
rc->qs = qs;
return GNUNET_SYSERR;
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: handle denomination key not found better,
gnunet <=