Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit d53ffa0

Browse files
committed
fix(oas3): emit node tag in error for unsupported tag
1 parent f838032 commit d53ffa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fury-adapter-oas3-parser/lib/parser/parseYAML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function convert(node, annotations, context) {
9090
copySourceMap(node.start_mark, node.end_mark, warning, namespace);
9191
annotations.push(warning);
9292
} else {
93-
throw new Error('Unsupported YAML node');
93+
throw new Error(`Unsupported YAML node '${node.tag}'`);
9494
}
9595

9696
copySourceMap(node.start_mark, node.end_mark, element, namespace);

0 commit comments

Comments
 (0)