From d86d85a182ade9997f7d18495431979cf5c61fcf Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 25 Jan 2022 10:17:29 -0600 Subject: [PATCH] Add position location for YAML parsing errors Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index ba38c51..9eed64c 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -165,7 +165,7 @@ class NFDocs(Directive): docstrings[proc_type][proc_name] = yaml.safe_load(doc_yaml) except: logger = logging.getLogger(__name__) - logger.warning(f"Could not parse YAML for {proc_name}") + logger.warning(f"Could not parse YAML for {proc_name} ({f}:{pos})") # Try to convert each definition to a node for block_type, block_docs in docstrings.items():