summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-delete-orders-ID.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-delete-orders-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-orders-ID.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-delete-orders-ID.c b/src/backend/taler-merchant-httpd_private-delete-orders-ID.c
index f044425c..ef272a6e 100644
--- a/src/backend/taler-merchant-httpd_private-delete-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-orders-ID.c
@@ -54,13 +54,13 @@ TMH_private_delete_orders_ID (const struct TMH_RequestHandler *rh,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_ORDERS_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_order (TMH_db->cls,
mi->settings.id,
@@ -81,11 +81,11 @@ TMH_private_delete_orders_ID (const struct TMH_RequestHandler *rh,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_NOT_FOUND,
TALER_EC_ORDERS_DELETE_NO_SUCH_ORDER,
- "Order unknown");
+ hc->infix);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_CONFLICT,
TALER_EC_ORDERS_DELETE_AWAITING_PAYMENT,
- "Order deletion impossible, order is locked");
+ hc->infix);
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
return TALER_MHD_reply_static (connection,
MHD_HTTP_NO_CONTENT,