diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c index d308bf4b..859603bb 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c +++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c @@ -138,7 +138,7 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_REFUND_STORE_DB_ERROR, - "Could not begin DB transaction"); + NULL); } rs = TMH_db->increase_refund (TMH_db->cls, hc->instance->settings.id, @@ -179,12 +179,12 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, MHD_HTTP_CONFLICT, TALER_EC_REFUND_INCONSISTENT_AMOUNT, "Amount above payment"); - case TALER_MERCHANTDB_RS_HARD_ERROR: case TALER_MERCHANTDB_RS_SOFT_ERROR: + case TALER_MERCHANTDB_RS_HARD_ERROR: return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_REFUND_MERCHANT_DB_COMMIT_ERROR, - "Internal database error"); + NULL); case TALER_MERCHANTDB_RS_NO_SUCH_ORDER: { enum GNUNET_DB_QueryStatus qs; @@ -202,14 +202,14 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, TALER_EC_REFUND_ORDER_ID_UNPAID, - "Order never paid"); + hc->infix); } else { return TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, TALER_EC_REFUND_ORDER_ID_UNKNOWN, - "Order unknown"); + hc->infix); } } case TALER_MERCHANTDB_RS_SUCCESS: @@ -228,7 +228,7 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, TALER_EC_REFUND_ORDER_ID_UNKNOWN, - "Order unknown when looking up contract"); + hc->infix); } if (GNUNET_OK != TALER_JSON_contract_hash (contract_terms, @@ -271,7 +271,7 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_REFUND_DB_INCONSISTENT, - "Database inconsistent, could not trigger notifications"); + NULL); } TMH_notify_order_change (hc->instance, hc->infix, |