diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refund.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_refund.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c index c2b2d800e..2ea19b7e8 100644 --- a/src/exchange/taler-exchange-httpd_refund.c +++ b/src/exchange/taler-exchange-httpd_refund.c | |||
@@ -233,11 +233,7 @@ refund_transaction (void *cls, | |||
233 | MHD_HTTP_PRECONDITION_FAILED, | 233 | MHD_HTTP_PRECONDITION_FAILED, |
234 | TALER_JSON_pack_amount ("detail", | 234 | TALER_JSON_pack_amount ("detail", |
235 | &ref->refund_amount), | 235 | &ref->refund_amount), |
236 | GNUNET_JSON_pack_string ("hint", | 236 | TALER_JSON_pack_ec (TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT), |
237 | TALER_ErrorCode_get_hint ( | ||
238 | TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT)), | ||
239 | GNUNET_JSON_pack_uint64 ("code", | ||
240 | TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT), | ||
241 | GNUNET_JSON_pack_array_steal ("history", | 237 | GNUNET_JSON_pack_array_steal ("history", |
242 | TEH_RESPONSE_compile_transaction_history ( | 238 | TEH_RESPONSE_compile_transaction_history ( |
243 | &refund->coin.coin_pub, | 239 | &refund->coin.coin_pub, |
@@ -332,11 +328,8 @@ refund_transaction (void *cls, | |||
332 | MHD_HTTP_CONFLICT, | 328 | MHD_HTTP_CONFLICT, |
333 | GNUNET_JSON_pack_string ("detail", | 329 | GNUNET_JSON_pack_string ("detail", |
334 | "total amount refunded exceeds total amount deposited for this coin"), | 330 | "total amount refunded exceeds total amount deposited for this coin"), |
335 | GNUNET_JSON_pack_string ("hint", | 331 | TALER_JSON_pack_ec ( |
336 | TALER_ErrorCode_get_hint ( | 332 | TALER_EC_EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT), |
337 | TALER_EC_EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT)), | ||
338 | GNUNET_JSON_pack_uint64 ("code", | ||
339 | TALER_EC_EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT), | ||
340 | GNUNET_JSON_pack_array_steal ("history", | 333 | GNUNET_JSON_pack_array_steal ("history", |
341 | TEH_RESPONSE_compile_transaction_history ( | 334 | TEH_RESPONSE_compile_transaction_history ( |
342 | &refund->coin.coin_pub, | 335 | &refund->coin.coin_pub, |