commit 21f306079e8993f2243c52d493a4fbd1cc4f927f
parent c7e33eaf75bf84c828607f202a8f8e3900312101
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Sat, 22 Nov 2025 13:52:19 +0100
new EC missing updates
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -2384,6 +2384,14 @@ enum TALER_ErrorCode
/**
+ * The unit referenced in the request is not known to the backend.
+ * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_MERCHANT_GENERIC_UNIT_UNKNOWN = 2004,
+
+
+ /**
* The proposal is not known to the backend.
* Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
* (A value of 0 indicates that the error is generated client-side).
diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c
@@ -2078,6 +2078,13 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ .ec = TALER_EC_MERCHANT_GENERIC_UNIT_UNKNOWN,
+ .hint = gettext_noop (
+ "The unit referenced in the request is not known to the backend."),
+ .http_code = MHD_HTTP_NOT_FOUND
+ },
+
+ {
.ec = TALER_EC_MERCHANT_GENERIC_ORDER_UNKNOWN,
.hint = gettext_noop ("The proposal is not known to the backend."),
.http_code = MHD_HTTP_NOT_FOUND
@@ -4754,7 +4761,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 680;
+static const unsigned int code_hint_pairs_length = 681;
const char *