diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-12-06 19:24:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-12-06 19:24:00 +0100 |
commit | 042616899f89d38167632e3ff24b16469a27fbef (patch) | |
tree | cd0bfb86882f3cc8cd493e7fb3cb0e5ea00e356c /src/auditor/taler-wire-auditor.c | |
parent | 5540747ca2e5f37f2df504d689b850d1078fcdc5 (diff) |
largely fix #5077
Diffstat (limited to 'src/auditor/taler-wire-auditor.c')
-rw-r--r-- | src/auditor/taler-wire-auditor.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index 6d5085ed4..8ba38d39c 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -830,6 +830,7 @@ check_exchange_wire_out () * transactions). * * @param cls closure + * @param ec error code in case something went wrong * @param dir direction of the transfer * @param row_off identification of the position at which we are querying * @param row_off_size number of bytes in @a row_off @@ -838,6 +839,7 @@ check_exchange_wire_out () */ static int history_debit_cb (void *cls, + enum TALER_ErrorCode ec, enum TALER_BANK_Direction dir, const void *row_off, size_t row_off_size, @@ -848,6 +850,13 @@ history_debit_cb (void *cls, if (TALER_BANK_DIRECTION_NONE == dir) { + if (TALER_EC_NONE != ec) + { + /* FIXME: log properly to audit report! */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Error fetching history: %u!\n", + (unsigned int) ec); + } /* end of iteration, now check wire_out to see if it matches #out_map */ hh = NULL; @@ -1069,6 +1078,7 @@ conclude_credit_history () * transactions). * * @param cls closure + * @param ec error code in case something went wrong * @param dir direction of the transfer * @param row_off identification of the position at which we are querying * @param row_off_size number of bytes in @a row_off @@ -1077,6 +1087,7 @@ conclude_credit_history () */ static int history_credit_cb (void *cls, + enum TALER_ErrorCode ec, enum TALER_BANK_Direction dir, const void *row_off, size_t row_off_size, @@ -1087,6 +1098,13 @@ history_credit_cb (void *cls, if (TALER_BANK_DIRECTION_NONE == dir) { + if (TALER_EC_NONE != ec) + { + /* FIXME: log properly to audit report! */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Error fetching history: %u!\n", + (unsigned int) ec); + } /* end of operation */ hh = NULL; conclude_credit_history (); |