diff --git a/spacy/cli/_util.py b/spacy/cli/_util.py index 506380b0b..68cb572ea 100644 --- a/spacy/cli/_util.py +++ b/spacy/cli/_util.py @@ -243,6 +243,8 @@ def show_validation_error( yield except ConfigValidationError as e: title = title if title is not None else e.title + if e.desc: + desc = f"{e.desc}" if not desc else f"{e.desc}\n\n{desc}" # Re-generate a new error object with overrides err = e.from_error(e, title="", desc=desc, show_config=show_config) msg.fail(title)