mirror of https://github.com/explosion/spaCy.git
Fix error message [ci skip]
This commit is contained in:
parent
f27aecac14
commit
9bdc9e81f5
|
@ -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", []):
|
||||||
|
|
Loading…
Reference in New Issue