mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
configpanel: improve debugging/error message when pydantic fails to validate the options etc
This commit is contained in:
parent
b427783721
commit
9a7ec301a6
1 changed files with 1 additions and 2 deletions
|
@ -2224,8 +2224,7 @@ def parse_raw_options(
|
|||
try:
|
||||
model = OptionsModel(**raw_options)
|
||||
except ValidationError as e:
|
||||
error = "\n".join([err["msg"] for err in e.errors()])
|
||||
raise YunohostError(error, raw_msg=True)
|
||||
raise YunohostError("While parsing manifest: " + str(e), raw_msg=True)
|
||||
|
||||
model.translate_options()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue