Skip to content

Commit

Permalink
Fix build (palantir#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchen63 authored May 15, 2017
1 parent ee1ae25 commit 482fe76
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,9 @@ export class Runner {
const { line, character } = diag.file.getLineAndCharacterOfPosition(diag.start);
let file: string;
const currentDirectory = program!.getCurrentDirectory();
if (this.options.outputAbsolutePaths) {
file = path.resolve(currentDirectory, diag.file.fileName);
} else {
file = path.relative(currentDirectory, diag.file.fileName);
}
file = this.options.outputAbsolutePaths
? path.resolve(currentDirectory, diag.file.fileName)
: path.relative(currentDirectory, diag.file.fileName);
message += ` at ${file}:${line + 1}:${character + 1}:`;
}
message += " " + ts.flattenDiagnosticMessageText(diag.messageText, "\n");
Expand Down

0 comments on commit 482fe76

Please sign in to comment.