Fix handling of error description [ci skip]

This commit is contained in:
Ines Montani 2020-09-27 22:31:57 +02:00
parent 013b66de05
commit d7ad65a9bb

View File

@ -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)