Skip to content

Commit ccc119b

Browse files
committed
Merge branch 'fix-extends-tsconfig'
2 parents 3bd3935 + 0ee5c09 commit ccc119b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="4.2.1"></a>
2+
## [4.2.1](https://github.com/vvakame/typescript-formatter/compare/4.2.0...v4.2.1) (2017-02-28)
3+
4+
5+
### Bug Fixes
6+
7+
* **tsfmt:** fix procedd of error message generation ([5bab796](https://github.com/vvakame/typescript-formatter/commit/5bab796))
8+
9+
10+
111
<a name="5.0.0"></a>
212
# [5.0.0](https://github.com/vvakame/typescript-formatter/compare/4.2.0...v5.0.0) (2017-02-27)
313

lib/provider/tsconfigjson.ts

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

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

0 commit comments

Comments
 (0)