Skip to content

Commit 4dad0e7

Browse files
TheLartiansPerryvw
authored andcommitted
report errors as (line,column) (#332)
1 parent 91b02ce commit 4dad0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function emitFilesAndReportErrors(program: ts.Program): number {
131131
// Graciously handle transpilation errors
132132
console.error("Encountered error parsing file: " + exception.message);
133133
console.error(
134-
sourceFile.fileName + " line: " + (1 + pos.line) + " column: " + pos.character + "\n" +
134+
sourceFile.fileName + " (" + (1 + pos.line) + "," + pos.character + ")\n" +
135135
exception.stack
136136
);
137137
process.exit(1);

0 commit comments

Comments
 (0)