diff options
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 6 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_withdraw.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index ab9b8139..33bc1398 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -704,6 +704,7 @@ TEH_RESPONSE_compile_reserve_history ( json_t *json_history; json_history = json_array (); + GNUNET_assert (NULL != json_history); for (const struct TALER_EXCHANGEDB_ReserveHistory *pos = rh; NULL != pos; pos = pos->next) @@ -1012,10 +1013,14 @@ reply_reserve_insufficient_funds ( json_history = TEH_RESPONSE_compile_reserve_history (rh); if (NULL == json_history) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Failed to compile reserve history\n"); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS, NULL); + } return TALER_MHD_REPLY_JSON_PACK ( connection, MHD_HTTP_CONFLICT, @@ -1061,6 +1066,7 @@ TEH_RESPONSE_reply_reserve_insufficient_balance ( if ( (qs < 0) || (NULL == rh) ) { + GNUNET_break (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_DB_FETCH_FAILED, diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index 25377363..05153bfc 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -215,6 +215,8 @@ withdraw_transaction (void *cls, if (! balance_ok) { TEH_plugin->rollback (TEH_plugin->cls); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Balance insufficient for /withdraw\n"); *mhd_ret = TEH_RESPONSE_reply_reserve_insufficient_balance ( connection, TALER_EC_EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS, |