better error informations

This commit is contained in:
egarette@silique.fr 2022-12-25 17:17:59 +01:00
parent 212699f571
commit 11029ea231

View file

@ -208,7 +208,7 @@ async def main():
try:
await root_option.option.get()
except AttributeError:
exit(f'Unable to find {server_name} configuration: {[await o.option.name() for o in await config.option.list(type="optiondescription")]}')
exit(f'Unable to find {server_name} configuration: {[await o.option.description() for o in await config.option.list(type="optiondescription")]}')
await table(root_option, 0, values, args.read_only)
for title, dico in values.items():
if title == 'Services':