From d7ad65a9bbfd09395de933ec38cac2d258e1a94b Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 27 Sep 2020 22:31:57 +0200 Subject: [PATCH] Fix handling of error description [ci skip] --- spacy/cli/_util.py | 2 ++ 1 file changed, 2 insertions(+) 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)