diff options
Diffstat (limited to 'src/backend/anastasis-httpd_policy_upload.c')
-rw-r--r-- | src/backend/anastasis-httpd_policy_upload.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/backend/anastasis-httpd_policy_upload.c b/src/backend/anastasis-httpd_policy_upload.c index b8bd5ed..bff6028 100644 --- a/src/backend/anastasis-httpd_policy_upload.c +++ b/src/backend/anastasis-httpd_policy_upload.c | |||
@@ -329,19 +329,18 @@ proposal_cb (void *cls, | |||
329 | por->hr.http_status, | 329 | por->hr.http_status, |
330 | (int) por->hr.ec); | 330 | (int) por->hr.ec); |
331 | GNUNET_break (0); | 331 | GNUNET_break (0); |
332 | puc->resp = TALER_MHD_make_json_pack ( | 332 | puc->resp = TALER_MHD_MAKE_JSON_PACK ( |
333 | "{s:I, s:s, s:I, s:I, s:O?}", | 333 | GNUNET_JSON_pack_uint64 ("code", |
334 | "code", | 334 | TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR), |
335 | (json_int_t) TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR, | 335 | GNUNET_JSON_pack_string ("hint", |
336 | "hint", | 336 | "Failed to setup order with merchant backend"), |
337 | "Failed to setup order with merchant backend", | 337 | GNUNET_JSON_pack_uint64 ("backend-ec", |
338 | "backend-ec", | 338 | por->hr.ec), |
339 | (json_int_t) por->hr.ec, | 339 | GNUNET_JSON_pack_uint64 ("backend-http-status", |
340 | "backend-http-status", | 340 | por->hr.http_status), |
341 | (json_int_t) por->hr.http_status, | 341 | GNUNET_JSON_pack_allow_null ( |
342 | "backend-reply", | 342 | GNUNET_JSON_pack_object_incref ("backend-reply", |
343 | por->hr.reply); | 343 | (json_t *) por->hr.reply))); |
344 | GNUNET_assert (NULL != puc->resp); | ||
345 | puc->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; | 344 | puc->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; |
346 | return; | 345 | return; |
347 | } | 346 | } |