diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products.c b/src/backend/taler-merchant-httpd_private-post-products.c index b7d240ae..88c59080 100644 --- a/src/backend/taler-merchant-httpd_private-post-products.c +++ b/src/backend/taler-merchant-httpd_private-post-products.c @@ -166,7 +166,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_PRODUCTS_POST_DB_START_ERROR, - "Failed to start transaction"); + NULL); } qs = TMH_db->lookup_product (TMH_db->cls, mi->settings.id, @@ -203,7 +203,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, TALER_EC_PRODUCTS_POST_CONFLICT_PRODUCT_EXISTS, - "different product exists under this product ID"); + product_id); } } @@ -225,14 +225,13 @@ retry: } GNUNET_JSON_parse_free (spec); if (qs < 0) - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_INTERNAL_SERVER_ERROR, - (GNUNET_DB_STATUS_SOFT_ERROR == qs) - ? - TALER_EC_PRODUCTS_POST_DB_COMMIT_SOFT_ERROR - : - TALER_EC_PRODUCTS_POST_DB_COMMIT_HARD_ERROR, - "Failed to commit transaction"); + return TALER_MHD_reply_with_error ( + connection, + MHD_HTTP_INTERNAL_SERVER_ERROR, + (GNUNET_DB_STATUS_SOFT_ERROR == qs) + ? TALER_EC_PRODUCTS_POST_DB_COMMIT_SOFT_ERROR + : TALER_EC_PRODUCTS_POST_DB_COMMIT_HARD_ERROR, + NULL); return TALER_MHD_reply_static (connection, MHD_HTTP_NO_CONTENT, NULL, |