aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-06-24 11:46:02 +0200
committerChristian Grothoff <christian@grothoff.org>2024-06-24 11:46:02 +0200
commit843bf7140aa89b3d171dbc1f6525e5d6720eda89 (patch)
treeaaa8edef518d6d65241ec3476d96a06cbc7c7ef6
parent66c45f6c7dcfc0abb0bd144cacd87f6e9104971c (diff)
log on 400 errors
m---------contrib/wallet-core0
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.c9
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/wallet-core b/contrib/wallet-core
-Subproject d61c38e4864dc508536136e94e625cf9dd1660a
+Subproject 608c1bb0b435eb64420388a1a5809df3d1146bc
diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c
index 4c6a104e..3e60c153 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders.c
@@ -679,26 +679,35 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh,
"paid",
TALER_EXCHANGE_YNA_ALL,
&po->of.paid)) )
+ {
+ GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
"paid");
+ }
if (! (TALER_arg_to_yna (connection,
"refunded",
TALER_EXCHANGE_YNA_ALL,
&po->of.refunded)) )
+ {
+ GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
"refunded");
+ }
if (! (TALER_arg_to_yna (connection,
"wired",
TALER_EXCHANGE_YNA_ALL,
&po->of.wired)) )
+ {
+ GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
"wired");
+ }
po->of.delta = -20;
/* deprecated in protocol v12 */
TALER_MHD_parse_request_snumber (connection,