Added warning to make finding misconfigurations easier
This commit is contained in:
parent
45deef3f03
commit
1d1bf68f0d
|
@ -632,6 +632,14 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
||||||
this.client.term.rawWrite(ansi.resetScreen());
|
this.client.term.rawWrite(ansi.resetScreen());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_.has(config.art, name)) {
|
||||||
|
const artKeys = _.keys(config.art);
|
||||||
|
this.client.log.warn(
|
||||||
|
{ requestedArtName: name, availableArtKeys: artKeys },
|
||||||
|
'Art name is not set! Check configuration for typos.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
theme.displayThemedAsset(
|
theme.displayThemedAsset(
|
||||||
config.art[name],
|
config.art[name],
|
||||||
this.client,
|
this.client,
|
||||||
|
|
Loading…
Reference in New Issue