1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-18 21:10:17 +01:00

Add error message in case of wrong config

This commit is contained in:
2022-04-22 07:52:22 +02:00
parent e63d83fc7f
commit 20120d898a

3
box.py
View File

@@ -1339,7 +1339,8 @@ def vmrebuild(args):
try:
conf = Config(args, vbox)
except BoxNotFound:
except BoxNotFound as ex:
LOG.fatal(f'Error with parsing config: {ex}')
return 8
except yaml.YAMLError:
LOG.fatal(f'Cannot read or parse file `{args.config}` as YAML '