diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-25 20:32:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-25 20:32:36 +0200 |
commit | d354d119db7ca0195cb93140bf3160b11449fa92 (patch) | |
tree | ae96671396a0073d4416cb59d57a7a54f87bd20b /src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | |
parent | 0acefc910ff1b86aa04300310d63e3ea88d509de (diff) |
fix #6432
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, |