commit 3c4336b24ed3cc69c8a66277ab01d89c475678c0 parent 1fa6e1d6da77f3ce54b818b8afa90a609d983d0f Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 12 Jul 2026 21:48:25 +0200 distinguish DB error from not found Diffstat:
| M | src/auditor/taler-helper-auditor-reserves.c | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c @@ -1523,7 +1523,13 @@ verify_reserve_balance (void *cls, qs = TALER_EXCHANGEDB_reserves_get (TALER_ARL_edb, &reserve); - if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) + if (0 > qs) + { + GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); + rc->qs = qs; + return GNUNET_SYSERR; + } + if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { /* If the exchange doesn't have this reserve in the summary, it is like the exchange 'lost' that amount from its records,