mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix handling of error description [ci skip]
This commit is contained in:
parent
013b66de05
commit
d7ad65a9bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user