fix: better warnings
This commit is contained in:
parent
437664e95a
commit
38f1e9bc4e
1 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ def _main(arguments, do_not_print):
|
|||
layer_datas, metaconfig, config, err_warn = load_user_data(rougailconfig)
|
||||
if config and (not rougailconfig["cli.load_config"] or not rougailconfig["cli.read_write"]):
|
||||
config.property.read_only()
|
||||
if rougailconfig["cli.mandatory"]:
|
||||
if config and rougailconfig["cli.mandatory"]:
|
||||
mandatories(config, err_warn["errors"])
|
||||
output = get_output(rougailconfig,
|
||||
metaconfig,
|
||||
|
|
@ -113,7 +113,7 @@ def load_cmd_user_data(rougailconfig, arguments):
|
|||
if var:
|
||||
warn(UserWarning(f'unable to load "{var.option.impl_get_display_name(var)}", {str(w)}'))
|
||||
else:
|
||||
warn(UserWarning(f'{str(w)}'))
|
||||
warn(w)
|
||||
else:
|
||||
warn(warning)
|
||||
if manage_warnings:
|
||||
|
|
|
|||
Loading…
Reference in a new issue