diff --git a/spacy/cli/_util.py b/spacy/cli/_util.py index 9d3ae0913..d1686c051 100644 --- a/spacy/cli/_util.py +++ b/spacy/cli/_util.py @@ -110,7 +110,9 @@ def load_project_config(path: Path) -> Dict[str, Any]: msg.fail(invalid_err, e, exits=1) errors = validate(ProjectConfigSchema, config) 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) # Make sure directories defined in config exist for subdir in config.get("directories", []):