diff options
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 }; |