From 300cfd42b8ced9c7d8f21533c751089c066e5d3f Mon Sep 17 00:00:00 2001 From: Frank Thomschke Date: Wed, 22 May 2024 19:02:39 +0200 Subject: [PATCH] fix validation report --- src/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validate.js b/src/validate.js index 4434151..0e02d11 100644 --- a/src/validate.js +++ b/src/validate.js @@ -62,7 +62,7 @@ async function validate(shapePath, filePath, doc) { result.message, "\n", "Path: ", - result.path.value, + result.path?.value, "\n", "Node, where the error occured: ", result.focusNode.value, @@ -78,7 +78,7 @@ async function validate(shapePath, filePath, doc) { result.message, "\n", "Path: ", - result.path.value, + result.path?.value, "\n", "Node, where the error occured: ", result.focusNode.value,