exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 7a06d9a15f3cf7c81a8b93c68ed7dc90c4106e7b
parent 131068d26a5b9a40ff2ea161c820cb3fc63d12a6
Author: Florian Dold <florian@dold.me>
Date:   Tue,  8 Jul 2025 00:25:14 +0200

improve error reporting, remove bad attribute check

Diffstat:
Msrc/kyclogic/taler-exchange-helper-measure-tops-3rdparty-check | 3+--
Msrc/kyclogic/taler-exchange-helper-measure-tops-kyx-check | 8++++----
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/kyclogic/taler-exchange-helper-measure-tops-3rdparty-check b/src/kyclogic/taler-exchange-helper-measure-tops-3rdparty-check @@ -104,11 +104,10 @@ echo "$INPUTS" \ | jq -r 'def get($k): if has($k) then .[$k] - else error("attribute missing") + else error("attribute \($k) missing") end; {"THIRD_PARTY_OWNERSHIP":get("THIRD_PARTY_OWNERSHIP"), "CONTROL_REASON":get("CONTROL_REASON"), - "SUBMITTED_BY":get("SUBMITTED_BY"), "SIGN_DATE":get("SIGN_DATE"), "SIGNATURE":get("SIGNATURE")}' \ > /dev/null \ diff --git a/src/kyclogic/taler-exchange-helper-measure-tops-kyx-check b/src/kyclogic/taler-exchange-helper-measure-tops-kyx-check @@ -122,7 +122,7 @@ in | jq -r 'def get($k): if has($k) then .[$k] - else error("attribute missing") + else error("attribute \($k) missing") end; {"FULL_NAME":get("FULL_NAME"), "DOMICILE_ADDRESS":get("DOMICILE_ADDRESS"), @@ -142,7 +142,7 @@ in | jq -r 'def get($k): if has($k) then .[$k] - else error("attribute missing") + else error("attribute \($k) missing") end; {"COMPANY_NAME":get("COMPANY_NAME"), "REGISTERED_OFFICE_ADDRESS":get("REGISTERED_OFFICE_ADDRESS"), @@ -163,7 +163,7 @@ in | jq -r 'def get($k): if has($k) then .[$k] - else error("attribute missing") + else error("attribute \($k) missing") end; {"COMPANY_NAME":get("COMPANY_NAME"), "REGISTERED_OFFICE_ADDRESS":get("REGISTERED_OFFICE_ADDRESS"), @@ -184,7 +184,7 @@ in | jq -r 'def get($k): if has($k) then .[$k] - else error("attribute missing") + else error("attribute \($k) missing") end; {"COMPANY_NAME":get("COMPANY_NAME"), "REGISTERED_OFFICE_ADDRESS":get("REGISTERED_OFFICE_ADDRESS"),