Fix error message [ci skip]

This commit is contained in:
Ines Montani 2020-08-23 12:14:02 +02:00
parent f27aecac14
commit 9bdc9e81f5
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ def load_project_config(path: Path) -> Dict[str, Any]:
msg.fail(invalid_err, e, exits=1) msg.fail(invalid_err, e, exits=1)
errors = validate(ProjectConfigSchema, config) errors = validate(ProjectConfigSchema, config)
if errors: if errors:
msg.fail(invalid_err, "\n".join(errors), exits=1) msg.fail(invalid_err)
print("\n".join(errors))
sys.exit(1)
validate_project_commands(config) validate_project_commands(config)
# Make sure directories defined in config exist # Make sure directories defined in config exist
for subdir in config.get("directories", []): for subdir in config.get("directories", []):