mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Clarify duplicate yaml key ValueError message
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
parent
6e05fbdb87
commit
f2b4fb8e57
@ -110,7 +110,7 @@ class NoDuplicateKeysLoader(yaml.loader.SafeLoader):
|
|||||||
assert len(duplicate_keys) > 0
|
assert len(duplicate_keys) > 0
|
||||||
|
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Key redefinitions are not allowed: " + ", ".join(duplicate_keys)
|
f"Config field duplicates are not allowed, the following fields are duplicated in the config: {', '.join(duplicate_keys)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
return mapping
|
return mapping
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user