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-post-instances.c | |
parent | 579938a29e1d1d4ada49ca4c1a8b0d18878974a9 (diff) | |
download | merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.tar.gz merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.tar.bz2 merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.zip |
adjust error codes in merchant
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-instances.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-instances.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-instances.c b/src/backend/taler-merchant-httpd_private-post-instances.c index 1a9d2b27..1cd1a0bb 100644 --- a/src/backend/taler-merchant-httpd_private-post-instances.c +++ b/src/backend/taler-merchant-httpd_private-post-instances.c @@ -189,8 +189,8 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_POST_INSTANCES_BAD_CURRENCY, - NULL); + TALER_EC_GENERIC_CURRENCY_MISMATCH, + TMH_currency); } { @@ -240,7 +240,7 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_POST_INSTANCES_ALREADY_EXISTS, + TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS, is.id); } } @@ -338,7 +338,7 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_POST_INSTANCES_BAD_PAYTO_URIS, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, NULL); } } @@ -369,7 +369,7 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, free_mi (mi); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_POST_INSTANCES_DB_START_ERROR, + TALER_EC_GENERIC_DB_START_FAILED, NULL); } qs = TMH_db->insert_instance (TMH_db->cls, @@ -424,7 +424,7 @@ retry: free_mi (mi); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_POST_INSTANCES_DB_COMMIT_ERROR, + TALER_EC_GENERIC_DB_COMMIT_FAILED, NULL); } /* Finally, also update our running process */ |