diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-23 00:55:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-23 00:55:54 +0100 |
commit | e43187d617d33ffbfdbd1121e5166fe8a65fe21b (patch) | |
tree | 03ad22993a4f9d66199517e9d77644bf67f0529c /pogen | |
parent | c43e24bb13d75af41d6839b1e921165982b64fe8 (diff) |
better pogen error reporting
Diffstat (limited to 'pogen')
-rw-r--r-- | pogen/pogen.ts | 3 |
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; } }; |