diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-25 15:11:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-25 15:11:56 +0200 |
commit | 4bba7263564303f45eed86cc68e54bbbf00856a6 (patch) | |
tree | 2a9985652bcf85670afc59559e129f639bd69578 /src/exchange/taler-exchange-httpd_responses.c | |
parent | ce266ce8f2333d5c30672cf56c3d2e92ef20a851 (diff) | |
download | exchange-4bba7263564303f45eed86cc68e54bbbf00856a6.tar.gz exchange-4bba7263564303f45eed86cc68e54bbbf00856a6.tar.bz2 exchange-4bba7263564303f45eed86cc68e54bbbf00856a6.zip |
nicer generic error reporting logic, for #6432
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 4bcb9e7a5..d7d118615 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -445,13 +445,13 @@ TEH_RESPONSE_reply_coin_insufficient_funds ( GNUNET_break (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_COIN_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS, - "failed to convert transaction history to JSON"); + TALER_EC_JSON_ALLOCATION_FAILURE, + "Failed to generated proof of insufficient funds"); } return TALER_MHD_reply_json_pack (connection, MHD_HTTP_CONFLICT, "{s:s, s:I, s:o}", - "hint", "insufficient funds", + "hint", TALER_ErrorCode_get_hint (ec), "code", (json_int_t) ec, "history", history); } |