diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-08 00:50:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-08 00:50:16 +0100 |
commit | e42cf1a738aef2c2aee32997d157965b02e2fe0d (patch) | |
tree | 0332ba70640210f1e4119927e2e5b72005f57163 /src/backend/taler-merchant-httpd_private-get-transfers.c | |
parent | 579938a29e1d1d4ada49ca4c1a8b0d18878974a9 (diff) |
adjust error codes in merchant
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-transfers.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-transfers.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-transfers.c b/src/backend/taler-merchant-httpd_private-get-transfers.c index ffff32be..3ac15d01 100644 --- a/src/backend/taler-merchant-httpd_private-get-transfers.c +++ b/src/backend/taler-merchant-httpd_private-get-transfers.c @@ -121,7 +121,7 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, &before)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PARAMETER_MALFORMED, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "before"); } { @@ -136,7 +136,7 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, &after)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PARAMETER_MALFORMED, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "after"); } { @@ -157,7 +157,7 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, dummy)) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PARAMETER_MALFORMED, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "limit"); limit = (int64_t) l; } @@ -180,7 +180,7 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, dummy)) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PARAMETER_MALFORMED, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "offset"); offset = (uint64_t) o; } @@ -198,7 +198,7 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, &verified)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PARAMETER_MALFORMED, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "verified"); TMH_db->preflight (TMH_db->cls); @@ -226,8 +226,8 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_GET_TRANSFERS_DB_FETCH_ERROR, - NULL); + TALER_EC_GENERIC_DB_FETCH_FAILED, + "transfers"); } return TALER_MHD_reply_json_pack (connection, MHD_HTTP_OK, |