diff options
Diffstat (limited to 'src/auditor/taler-auditor.c')
-rw-r--r-- | src/auditor/taler-auditor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c index 42a167d06..0d7d0b01a 100644 --- a/src/auditor/taler-auditor.c +++ b/src/auditor/taler-auditor.c @@ -1085,15 +1085,17 @@ verify_reserve_balance (void *cls, struct ReserveSummary *rs = value; struct TALER_EXCHANGEDB_Reserve reserve; struct TALER_Amount balance; + enum GNUNET_DB_QueryStatus qs; int ret; ret = GNUNET_OK; reserve.pub = rs->reserve_pub; - if (GNUNET_OK != - edb->reserve_get (edb->cls, - esession, - &reserve)) + qs = edb->reserve_get (edb->cls, + esession, + &reserve); + if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) { + /* FIXME: may we have to deal with soft errors here? */ char *diag; GNUNET_asprintf (&diag, |