mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Show actual error path/key in YAML card editor (#8076)
This commit is contained in:
parent
775e93d54b
commit
293b56cfa6
@ -8,7 +8,7 @@ export const handleStructError = (err: Error): string[] => {
|
|||||||
for (const failure of err.failures()) {
|
for (const failure of err.failures()) {
|
||||||
if (failure.type === "never") {
|
if (failure.type === "never") {
|
||||||
errors.push(
|
errors.push(
|
||||||
`Key "${failure.path[0]}" is not supported by the UI editor.`
|
`Key "${failure.path.join(".")}" is not supported by the UI editor.`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
errors.push(
|
errors.push(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user