aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-08-25 14:11:23 +0200
committerFlorian Dold <florian@dold.me>2023-08-25 14:11:23 +0200
commitc95740f1e845d1bb14b5e255b1d217dd30b3a7da (patch)
tree9e2a27875b0a83c9fe3228de9a4f6350bc0944a0 /packages/taler-harness/src
parent896841aec5dc3594d83cc300349d20ec2270f88e (diff)
downloadwallet-core-c95740f1e845d1bb14b5e255b1d217dd30b3a7da.tar.xz
taler-util: make config parsing more compliant with spec
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r--packages/taler-harness/src/lint.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-harness/src/lint.ts b/packages/taler-harness/src/lint.ts
index 715227c7f..f13049710 100644
--- a/packages/taler-harness/src/lint.ts
+++ b/packages/taler-harness/src/lint.ts
@@ -136,13 +136,13 @@ function checkBasicConf(context: LintContext): BasicConf {
const currencyEntry = cfg.getString("taler", "currency");
let mainCurrency: string | undefined;
- if (!currencyEntry.value) {
+ if (!currencyEntry.isDefined()) {
context.numErr++;
console.log("error: currency not defined in section TALER option CURRENCY");
console.log("Aborting further checks.");
process.exit(1);
} else {
- mainCurrency = currencyEntry.value.toUpperCase();
+ mainCurrency = currencyEntry.required().toUpperCase();
}
if (mainCurrency === "KUDOS") {