aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-23 00:59:01 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-23 00:59:01 +0100
commitd2f9fc8617de0496f546972c7798f3c1669c2393 (patch)
treeeb5563d4e182c460ae557cdb836ffdcc00598721
parente43187d617d33ffbfdbd1121e5166fe8a65fe21b (diff)
downloadwallet-core-d2f9fc8617de0496f546972c7798f3c1669c2393.tar.xz
fix line/col reporting
-rw-r--r--pogen/pogen.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/pogen/pogen.ts b/pogen/pogen.ts
index 441ee3e51..9e9fc1f20 100644
--- a/pogen/pogen.ts
+++ b/pogen/pogen.ts
@@ -228,7 +228,7 @@ export function processFile(sourceFile: ts.SourceFile) {
break;
default:
let lc = ts.getLineAndCharacterOfPosition(childNode.getSourceFile(), childNode.getStart());
- console.error(`unrecognized syntax in JSX Element (${childNode.getSourceFile().fileName}:${lc.line}:${lc.character}`);
+ console.error(`unrecognized syntax in JSX Element ${ts.SyntaxKind[childNode.kind]} (${childNode.getSourceFile().fileName}:${lc.line+1}:${lc.character+1}`);
break;
}
};