From 293b56cfa68a7b14c582a59f776776a9a4edfa03 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 4 Jan 2021 09:58:07 +0100 Subject: [PATCH] Show actual error path/key in YAML card editor (#8076) --- src/panels/lovelace/common/structs/handle-errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/common/structs/handle-errors.ts b/src/panels/lovelace/common/structs/handle-errors.ts index 7205025fc6..b97ae217b1 100644 --- a/src/panels/lovelace/common/structs/handle-errors.ts +++ b/src/panels/lovelace/common/structs/handle-errors.ts @@ -8,7 +8,7 @@ export const handleStructError = (err: Error): string[] => { for (const failure of err.failures()) { if (failure.type === "never") { 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 { errors.push(