diff options
author | Florian Dold <florian@dold.me> | 2021-08-06 16:27:18 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-06 16:27:18 +0200 |
commit | 05e52d4e116222728d9bcba3bcbf9e441bb4e4ed (patch) | |
tree | 6ef9da262ea2e88379878db52d2a1dbd022acd59 /packages/taler-wallet-cli/src/lint.ts | |
parent | 97de6321ac9a4047c36c9000b93989967ad36013 (diff) | |
download | wallet-core-05e52d4e116222728d9bcba3bcbf9e441bb4e4ed.tar.xz |
perf and logging improvements
Diffstat (limited to 'packages/taler-wallet-cli/src/lint.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/lint.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/lint.ts b/packages/taler-wallet-cli/src/lint.ts index f88865952..4b9633871 100644 --- a/packages/taler-wallet-cli/src/lint.ts +++ b/packages/taler-wallet-cli/src/lint.ts @@ -149,10 +149,11 @@ function checkBasicConf(context: LintContext): BasicConf { } const roundUnit = cfg.getAmount("taler", "currency_round_unit"); - if (!roundUnit.isDefined) { + const ru = roundUnit.required(); + if (ru.currency.toLowerCase() != mainCurrency.toLowerCase()) { context.numErr++; console.log( - "error: configuration incomplete, section TALER option CURRENCY_ROUND_UNIT missing", + "error: [TALER]/CURRENCY_ROUND_UNIT: currency does not match main currency", ); } return { mainCurrency }; |