fix: if error is a string do the same error has if it's a dict
This commit is contained in:
parent
5adf14feb9
commit
22c429e902
5 changed files with 9 additions and 8 deletions
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a19"
|
__version__ = "1.0.0"
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,8 @@ class CommonOutput:
|
||||||
None, {}
|
None, {}
|
||||||
).setdefault(description, []).append((msg, level))
|
).setdefault(description, []).append((msg, level))
|
||||||
else:
|
else:
|
||||||
errors_dict.setdefault(None, []).append(error)
|
# Shoud not exist, error should always be a dict
|
||||||
|
errors_dict.setdefault(None, {}).setdefault(None, []).append((error, level))
|
||||||
|
|
||||||
def subconfig_to_dict(self, subconfig: "Subconfig", errors_dict: dict) -> dict:
|
def subconfig_to_dict(self, subconfig: "Subconfig", errors_dict: dict) -> dict:
|
||||||
# FIXME a tester : mandatories dans une arborescence (voir si ca n'ecrase pas)
|
# FIXME a tester : mandatories dans une arborescence (voir si ca n'ecrase pas)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
>
|
>
|
||||||
> - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
|
> - <span style='color: -'>:stop_sign: cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data</span>
|
||||||
> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
|
> - <span style='color: -'>:stop_sign: variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data</span>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
>
|
>
|
||||||
> - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
|
> - <span style='color: #C23636'>:stop_sign: cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data</span>
|
||||||
> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
|
> - <span style='color: #C23636'>:stop_sign: variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data</span>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
[1;91m🛑 Caution[0m
|
[1;91m🛑 Caution[0m
|
||||||
[91m┣━━ [0mcannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
|
[91m┣━━ [0m[91m🛑 cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data[0m
|
||||||
[91m┗━━ [0mvariable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
|
[91m┗━━ [0m[91m🛑 variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data[0m
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue