add error message for invalid use_as_default

This commit is contained in:
TerminalMan 2024-09-12 23:48:24 +01:00
parent e11d80b285
commit eb5f42c845

View file

@ -39,8 +39,9 @@ class TabbyConfig(TabbyConfigModel):
elif hasattr(self.draft_model, field):
self.model_defaults[field] = getattr(config.draft_model, field)
else:
# TODO: show an error
pass
logger.error(
f"invalid item {field} in config option `model.use_as_default`"
)
def _from_file(self, config_path: pathlib.Path):
"""loads config from a given file path"""