summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-delete-products-ID.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-delete-products-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-products-ID.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-delete-products-ID.c b/src/backend/taler-merchant-httpd_private-delete-products-ID.c
index fe04d765..2102a92a 100644
--- a/src/backend/taler-merchant-httpd_private-delete-products-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-products-ID.c
@@ -49,13 +49,13 @@ TMH_private_delete_products_ID (const struct TMH_RequestHandler *rh,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_PRODUCTS_DELETE_DB_HARD_FAILURE,
- "Transaction failed");
+ NULL);
case GNUNET_DB_STATUS_SOFT_ERROR:
GNUNET_break (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_INTERNAL_INVARIANT_FAILURE,
- "Serialization error for single SQL statement");
+ NULL);
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
qs = TMH_db->lookup_product (TMH_db->cls,
mi->settings.id,
@@ -65,11 +65,11 @@ TMH_private_delete_products_ID (const struct TMH_RequestHandler *rh,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_NOT_FOUND,
TALER_EC_PRODUCTS_DELETE_NO_SUCH_PRODUCT,
- "Product unknown");
+ hc->infix);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_CONFLICT,
TALER_EC_PRODUCTS_DELETE_CONFLICTING_LOCK,
- "Product deletion impossible, product is locked");
+ hc->infix);
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
return TALER_MHD_reply_static (connection,
MHD_HTTP_NO_CONTENT,