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,