commit 4ddebdcf4b8ae141b639c473a7aacd5499faa156
parent 69a990207f66ac1dd3e1e6c91085fe025314cd3c
Author: nolash <dev@holbrook.no>
Date: Wed, 11 Nov 2020 20:01:11 +0100
Removing throw on unknown key
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/config.ts b/src/config.ts
@@ -58,7 +58,8 @@ class Config {
}
const kk = k.substring(prefix.length);
if (this.store[kk] === undefined) {
- throw 'unknown configuration key ' + k;
+ console.debug('skipping unknown key', kk);
+ continue;
}
console.debug('Replace ' + kk + ': ' + o[k]);
this.store[kk] = o[k];