We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a139fa3 commit 5bab796Copy full SHA for 5bab796
lib/provider/tsconfigjson.ts
@@ -35,7 +35,7 @@ export default function makeFormatCodeOptions(fileName: string, opts: Options, f
35
let rootConfig = parseJSON(fs.readFileSync(configFileName, "utf-8"));
36
let parsed = ts.parseJsonConfigFileContent(rootConfig, host, baseDir);
37
if (parsed.errors && parsed.errors.length !== 0) {
38
- throw new Error(parsed.errors.join("\n"));
+ throw new Error(parsed.errors.map(e => e.messageText).join("\n"));
39
}
40
41
if (parsed.options.newLine === ts.NewLineKind.CarriageReturnLineFeed) {
0 commit comments