From 4bba7263564303f45eed86cc68e54bbbf00856a6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 Aug 2020 15:11:56 +0200 Subject: nicer generic error reporting logic, for #6432 --- src/exchange/taler-exchange-httpd_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_link.c') diff --git a/src/exchange/taler-exchange-httpd_link.c b/src/exchange/taler-exchange-httpd_link.c index 948c8eb08..3611db50e 100644 --- a/src/exchange/taler-exchange-httpd_link.c +++ b/src/exchange/taler-exchange-httpd_link.c @@ -157,7 +157,7 @@ link_transaction (void *cls, *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, ctx->ec, - "coin_pub"); + NULL); return GNUNET_DB_STATUS_HARD_ERROR; } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) @@ -165,7 +165,7 @@ link_transaction (void *cls, *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, TALER_EC_LINK_COIN_UNKNOWN, - "coin_pub"); + NULL); return GNUNET_DB_STATUS_HARD_ERROR; } return qs; @@ -202,7 +202,7 @@ TEH_handler_link (const struct TEH_RequestHandler *rh, return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_COINS_INVALID_COIN_PUB, - "coin public key malformed"); + args[0]); } ctx.mlist = json_array (); if (NULL == ctx.mlist) -- cgit v1.2.3