Added warning to make finding misconfigurations easier

This commit is contained in:
Nathan Byrd 2023-02-01 18:26:33 -06:00
parent 45deef3f03
commit 1d1bf68f0d
1 changed files with 8 additions and 0 deletions

View File

@ -632,6 +632,14 @@ exports.MenuModule = class MenuModule extends PluginModule {
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(
config.art[name],
this.client,