commit 001e4cface308daff2d3fe37527f1c25249cb881
parent 0c602b944e60c0d5e029e45d6f44aafe33a5ef27
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 13 Jul 2026 00:09:46 +0200
return 500 instead of aborting on DB issue
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_post-private-transfers.c b/src/backend/taler-merchant-httpd_post-private-transfers.c
@@ -99,7 +99,11 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
TALER_EC_GENERIC_DB_STORE_FAILED,
"insert_transfer");
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- GNUNET_assert (0); /* should be impossible */
+ GNUNET_break (0); /* should be impossible */
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
+ TALER_EC_GENERIC_DB_INVARIANT_FAILURE,
+ "insert_transfer");
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
break;
}