Skip to content

Commit 5bab796

Browse files
committed
fix(tsfmt): fix procedd of error message generation
1 parent a139fa3 commit 5bab796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/provider/tsconfigjson.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function makeFormatCodeOptions(fileName: string, opts: Options, f
3535
let rootConfig = parseJSON(fs.readFileSync(configFileName, "utf-8"));
3636
let parsed = ts.parseJsonConfigFileContent(rootConfig, host, baseDir);
3737
if (parsed.errors && parsed.errors.length !== 0) {
38-
throw new Error(parsed.errors.join("\n"));
38+
throw new Error(parsed.errors.map(e => e.messageText).join("\n"));
3939
}
4040

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

0 commit comments

Comments
 (0)