diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/talerconfig.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/talerconfig.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/util/talerconfig.ts b/packages/taler-wallet-core/src/util/talerconfig.ts index e9a67287c..d121601c5 100644 --- a/packages/taler-wallet-core/src/util/talerconfig.ts +++ b/packages/taler-wallet-core/src/util/talerconfig.ts @@ -79,7 +79,7 @@ export class ConfigValue<T> { /** * Shell-style path substitution. - * + * * Supported patterns: * "$x" (look up "x") * "${x}" (look up "x") @@ -240,7 +240,9 @@ export class Configuration { } else if (x === "no") { return false; } - throw Error(`invalid config value for [${secNorm}]/${optNorm}, expected yes/no`); + throw Error( + `invalid config value for [${secNorm}]/${optNorm}, expected yes/no`, + ); }; return new ConfigValue(secNorm, optNorm, val, convert); } @@ -253,7 +255,9 @@ export class Configuration { try { return Number.parseInt(x, 10); } catch (e) { - throw Error(`invalid config value for [${secNorm}]/${optNorm}, expected number`); + throw Error( + `invalid config value for [${secNorm}]/${optNorm}, expected number`, + ); } }; return new ConfigValue(secNorm, optNorm, val, convert); |