aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/taler-merchant-httpd_tip-pickup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_tip-pickup.c b/src/backend/taler-merchant-httpd_tip-pickup.c
index 76bf7ce9..57517477 100644
--- a/src/backend/taler-merchant-httpd_tip-pickup.c
+++ b/src/backend/taler-merchant-httpd_tip-pickup.c
@@ -203,23 +203,27 @@ run_pickup (struct MHD_Connection *connection,
if (TALER_EC_NONE != ec)
{
unsigned int response_code;
+ const char *human;
switch (ec)
{
case TALER_EC_TIP_PICKUP_TIP_ID_UNKNOWN:
response_code = MHD_HTTP_NOT_FOUND;
+ human = "tip identifier not known to this service";
break;
case TALER_EC_TIP_PICKUP_NO_FUNDS:
response_code = MHD_HTTP_SERVICE_UNAVAILABLE;
+ human = "withdrawn funds exceed amounts approved for tip";
break;
default:
response_code = MHD_HTTP_INTERNAL_SERVER_ERROR;
+ human = "database failure";
break;
}
return TMH_RESPONSE_reply_rc (connection,
response_code,
ec,
- "Database error approving tip");
+ human);
}
sigs = json_array ();
GNUNET_CRYPTO_eddsa_key_get_public (&reserve_priv.eddsa_priv,