summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-tips-ID-pickup.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-tips-ID-pickup.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c b/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c
index bba73d48..729a07f1 100644
--- a/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c
+++ b/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c
@@ -557,7 +557,7 @@ reply_lookup_tip_failed (struct MHD_Connection *connection,
return TALER_MHD_reply_with_error (connection,
response_code,
ec,
- "Could not process pickup");
+ NULL);
}
@@ -604,7 +604,7 @@ TMH_post_tips_ID_pickup (const struct TMH_RequestHandler *rh,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_PARAMETER_MALFORMED,
- "tip_id malformed");
+ hc->infix);
}
{
@@ -631,8 +631,8 @@ TMH_post_tips_ID_pickup (const struct TMH_RequestHandler *rh,
json_decref (planchets);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_PATCH_INSTANCES_BAD_PAYTO_URIS,
- "Invalid bank account information");
+ TALER_EC_PARAMETER_MALFORMED,
+ "planchets");
}
GNUNET_array_grow (pc->planchets,
@@ -735,7 +735,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_TIP_PICKUP_DB_ERROR_SOFT,
- "Too many DB serialization failures");
+ NULL);
}
if (GNUNET_OK !=
TMH_db->start (TMH_db->cls,
@@ -745,7 +745,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_TIP_PICKUP_DB_ERROR_HARD,
- "Could not begin transaction");
+ NULL);
}
{
struct GNUNET_CRYPTO_RsaSignature *sigs[GNUNET_NZL (pc->planchets_length)];
@@ -836,7 +836,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
response_code,
ec,
- "Could not process pickup");
+ NULL);
}
}
@@ -859,7 +859,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_GONE,
TALER_EC_TIP_PICKUP_HAS_EXPIRED,
- "Could not process pickup: it is too late");
+ hc->infix);
}
if (0 >
TALER_amount_subtract (&total_remaining,
@@ -871,7 +871,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_INTERNAL_LOGIC_ERROR,
- "tip already overdrawn");
+ hc->infix);
}
if (0 >
@@ -883,7 +883,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_TIP_PICKUP_AMOUNT_EXCEEDS_TIP_REMAINING,
- "requested amount exceeds amount left in tip");
+ hc->infix);
}
GNUNET_assert (0 <
@@ -904,7 +904,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_TIP_PICKUP_DB_STORE_HARD_ERROR,
- "Could not store pickup ID in database");
+ NULL);
}
qs = TMH_db->commit (TMH_db->cls);
if (qs < 0)
@@ -915,7 +915,7 @@ RETRY:
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_TIP_PICKUP_DB_STORE_HARD_ERROR,
- "Could not commit transaction to database");
+ NULL);
}
MHD_suspend_connection (connection);
pc->tt = GNUNET_SCHEDULER_add_delayed (EXCHANGE_TIMEOUT,