aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-07-25 11:33:27 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:48 +0200
commit1060d677ba1002486940fc814fad16dc1452894b (patch)
treed4019f4f6cd7c2eb3f1f8cda341bb8cbb6a33045
parenta6a6a27ee9b857c0f823d9c209fc34eca076cf31 (diff)
add new ECs
m---------contrib/gana0
-rw-r--r--src/exchange/taler-exchange-httpd_kyc-upload.c2
-rw-r--r--src/kyclogic/kyclogic_api.c12
3 files changed, 7 insertions, 7 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject f2c57293b707a2d6c6ef57088851e271ec7fcac
+Subproject 8911778784c09e2cdc2464e9146e3dfa655edd1
diff --git a/src/exchange/taler-exchange-httpd_kyc-upload.c b/src/exchange/taler-exchange-httpd_kyc-upload.c
index c9f983ed7..d0ab48fed 100644
--- a/src/exchange/taler-exchange-httpd_kyc-upload.c
+++ b/src/exchange/taler-exchange-httpd_kyc-upload.c
@@ -529,7 +529,7 @@ TEH_handler_kyc_upload (struct TEH_RequestContext *rc,
return TALER_MHD_reply_with_error (
rc->connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
- -1, // FIXME
+ TALER_EC_EXCHANGE_KYC_GENERIC_AML_LOGIC_BUG,
"TEH_kyc_finished");
}
GNUNET_CONTAINER_DLL_insert (uc_head,
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index cfc85cc97..adfc870fe 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -2913,7 +2913,7 @@ handle_aml_output (void *cls,
apr->details.failure.error_message
= "AML program returned non-zero exit code";
apr->details.failure.ec
- = -1; // FIXME!
+ = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_FAILURE;
goto ready;
}
@@ -2955,7 +2955,7 @@ handle_aml_output (void *cls,
apr->details.failure.error_message
= err;
apr->details.failure.ec
- = -1; // FIXME!
+ = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT;
goto ready;
}
else
@@ -2981,7 +2981,7 @@ handle_aml_output (void *cls,
apr->details.failure.error_message
= "events";
apr->details.failure.ec
- = -1; // FIXME!
+ = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT;
goto ready;
}
}
@@ -3001,7 +3001,7 @@ handle_aml_output (void *cls,
apr->details.failure.error_message
= "new_rules";
apr->details.failure.ec
- = -1; // FIXME!
+ = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT;
goto ready;
}
// FIXME: check 'lrs' is well-formed
@@ -3095,7 +3095,7 @@ TALER_KYCLOGIC_run_aml_program (
aprh->apr.details.failure.error_message
= rattr;
aprh->apr.details.failure.ec
- = -1; // FIXME
+ = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_REPLY;
aprh->async_cb
= GNUNET_SCHEDULER_add_now (&async_return_task,
aprh);
@@ -3119,7 +3119,7 @@ TALER_KYCLOGIC_run_aml_program (
aprh->apr.details.failure.error_message
= rctx;
aprh->apr.details.failure.ec
- = -1; // FIXME
+ = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_CONTEXT;
aprh->async_cb
= GNUNET_SCHEDULER_add_now (&async_return_task,
aprh);