Use Pydantic validation error message in logs

Should give better insight into the validation error.

Signed-off-by: Marek Pikuła <marek.pikula@embevity.com>
This commit is contained in:
Marek Pikuła
2023-04-22 05:31:40 +00:00
parent 7296c5d9e0
commit a5bd6d2f7e

View File

@@ -160,7 +160,7 @@ class InitCheckError(RuntimeError):
" %s with type %s: %s",
field.field_info.extra["env"],
field.type_.__name__,
sub_pydantic_error["type"],
sub_pydantic_error["msg"],
)
new_error.append_error(