Skip to content

Commit

Permalink
fix(tsfmt): fix procedd of error message generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Feb 28, 2017
1 parent a139fa3 commit 5bab796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provider/tsconfigjson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function makeFormatCodeOptions(fileName: string, opts: Options, f
let rootConfig = parseJSON(fs.readFileSync(configFileName, "utf-8"));
let parsed = ts.parseJsonConfigFileContent(rootConfig, host, baseDir);
if (parsed.errors && parsed.errors.length !== 0) {
throw new Error(parsed.errors.join("\n"));
throw new Error(parsed.errors.map(e => e.messageText).join("\n"));
}

if (parsed.options.newLine === ts.NewLineKind.CarriageReturnLineFeed) {
Expand Down

0 comments on commit 5bab796

Please sign in to comment.