aboutsummaryrefslogtreecommitdiff
path: root/pogen/pogen.ts
diff options
context:
space:
mode:
Diffstat (limited to 'pogen/pogen.ts')
-rw-r--r--pogen/pogen.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/pogen/pogen.ts b/pogen/pogen.ts
index 090a6efee..441ee3e51 100644
--- a/pogen/pogen.ts
+++ b/pogen/pogen.ts
@@ -227,7 +227,8 @@ export function processFile(sourceFile: ts.SourceFile) {
case ts.SyntaxKind.JsxClosingElement:
break;
default:
- console.error("unrecognized syntax in JSX Element", ts.SyntaxKind[childNode.kind]);
+ let lc = ts.getLineAndCharacterOfPosition(childNode.getSourceFile(), childNode.getStart());
+ console.error(`unrecognized syntax in JSX Element (${childNode.getSourceFile().fileName}:${lc.line}:${lc.character}`);
break;
}
};