From 9bdc9e81f5f8affe464d1ff3c6bc35c08aa2a0d6 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 23 Aug 2020 12:14:02 +0200 Subject: [PATCH] Fix error message [ci skip] --- spacy/cli/_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", []):