chore(doc-gen): improve error reporting