Revert except all in CLI error handling [ci skip]

This commit is contained in:
Ines Montani 2020-09-27 22:41:00 +02:00
parent 5c53a76021
commit 47c6a461e5
1 changed files with 2 additions and 4 deletions

View File

@ -258,10 +258,8 @@ def show_validation_error(
) )
print(f"{COMMAND} init fill-config {config_path} --base {config_path}\n") print(f"{COMMAND} init fill-config {config_path} --base {config_path}\n")
sys.exit(1) sys.exit(1)
except Exception as e: except InterpolationError as e:
msg.fail("Error while loading the config") msg.fail("Config validation error", e, exits=1)
print(e)
sys.exit(1)
def import_code(code_path: Optional[Union[Path, str]]) -> None: def import_code(code_path: Optional[Union[Path, str]]) -> None: