aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-23 00:55:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-23 00:55:54 +0100
commite43187d617d33ffbfdbd1121e5166fe8a65fe21b (patch)
tree03ad22993a4f9d66199517e9d77644bf67f0529c
parentc43e24bb13d75af41d6839b1e921165982b64fe8 (diff)
better pogen error reporting
-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;
}
};