summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_purses_create.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-27 10:16:51 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-27 10:34:36 +0200
commit521e0bbcb5a2bb247678bc69aef7d85c16944865 (patch)
tree635d94a2441e5b50ad10b8549978615265ae21b4 /src/exchange/taler-exchange-httpd_purses_create.c
parent9a05781ab37470e5b2cb22d6992c00b2913075e7 (diff)
downloadexchange-521e0bbcb5a2bb247678bc69aef7d85c16944865.tar.gz
exchange-521e0bbcb5a2bb247678bc69aef7d85c16944865.tar.bz2
exchange-521e0bbcb5a2bb247678bc69aef7d85c16944865.zip
-p2p fixes
Diffstat (limited to 'src/exchange/taler-exchange-httpd_purses_create.c')
-rw-r--r--src/exchange/taler-exchange-httpd_purses_create.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_purses_create.c b/src/exchange/taler-exchange-httpd_purses_create.c
index acd9bcc55..4034978b9 100644
--- a/src/exchange/taler-exchange-httpd_purses_create.c
+++ b/src/exchange/taler-exchange-httpd_purses_create.c
@@ -243,7 +243,7 @@ create_transaction (void *cls,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_STORE_FAILED,
"purse create");
- return qs;
+ return GNUNET_DB_STATUS_HARD_ERROR;
}
if (in_conflict)
{
@@ -314,13 +314,14 @@ create_transaction (void *cls,
{
if (GNUNET_DB_STATUS_SOFT_ERROR == qs)
return qs;
+ GNUNET_break (0 != qs);
TALER_LOG_WARNING (
"Failed to store purse deposit information in database\n");
*mhd_ret = TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_STORE_FAILED,
"purse create deposit");
- return qs;
+ return GNUNET_DB_STATUS_HARD_ERROR;
}
if (! balance_ok)
{
@@ -394,7 +395,7 @@ create_transaction (void *cls,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_STORE_FAILED,
"purse create contract");
- return qs;
+ return GNUNET_DB_STATUS_HARD_ERROR;
}
if (in_conflict)
{
@@ -414,13 +415,14 @@ create_transaction (void *cls,
{
if (GNUNET_DB_STATUS_SOFT_ERROR == qs)
return qs;
+ GNUNET_break (0 != qs);
TALER_LOG_WARNING (
"Failed to store fetch contract information from database\n");
*mhd_ret = TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_FETCH_FAILED,
"select contract");
- return qs;
+ return GNUNET_DB_STATUS_HARD_ERROR;
}
GNUNET_CRYPTO_hash (econtract,
econtract_size,