diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-02 17:11:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-02 17:11:55 +0200 |
commit | dcc083c0959d395bcd4bcf9aee276eb96ea76dee (patch) | |
tree | 4920a7e2ef9edce96420cc4f2e746cd21672d1cf /src/backend/taler-merchant-httpd_private-patch-instances-ID.c | |
parent | 3528056f9afa9b540ba4ca3f57eb581e5b514540 (diff) | |
download | merchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.tar.gz merchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.tar.bz2 merchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.zip |
POST /orders/ID/refund implementation
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-instances-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-instances-ID.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c index a4104b05..9255dcaa 100644 --- a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c @@ -96,18 +96,10 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, res = TALER_MHD_parse_json_data (connection, hc->request_body, spec); - /* json is malformed */ - if (GNUNET_NO == res) - { - GNUNET_break_op (0); - return MHD_YES; - } - /* other internal errors might have occurred */ - if (GNUNET_SYSERR == res) - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_INTERNAL_INVARIANT_FAILURE, - "Impossible to parse the order"); + if (GNUNET_OK != res) + return (GNUNET_NO == res) + ? MHD_YES + : MHD_NO; } if (! json_is_array (payto_uris)) return TALER_MHD_reply_with_error (connection, |