mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 05:30:18 +01:00
Add error message in case of wrong config
This commit is contained in:
3
box.py
3
box.py
@@ -1339,7 +1339,8 @@ def vmrebuild(args):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
conf = Config(args, vbox)
|
conf = Config(args, vbox)
|
||||||
except BoxNotFound:
|
except BoxNotFound as ex:
|
||||||
|
LOG.fatal(f'Error with parsing config: {ex}')
|
||||||
return 8
|
return 8
|
||||||
except yaml.YAMLError:
|
except yaml.YAMLError:
|
||||||
LOG.fatal(f'Cannot read or parse file `{args.config}` as YAML '
|
LOG.fatal(f'Cannot read or parse file `{args.config}` as YAML '
|
||||||
|
|||||||
Reference in New Issue
Block a user