Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit d1f1f16

Browse files
committed
added check for error in readConfigFile result
1 parent a4f03c0 commit d1f1f16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/instance.ts

+4
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ export function readConfigFile(
345345
}
346346

347347
let jsonConfigFile = tsImpl.readConfigFile(configFilePath, tsImpl.sys.readFile)
348+
if (jsonConfigFile.error) {
349+
console.error('Error occurred while reading tsconfig file', configFilePath, jsonConfigFile);
350+
throw new Error(jsonConfigFile.error.messageText);
351+
}
348352
let compilerConfig = tsImpl.parseJsonConfigFileContent(
349353
jsonConfigFile.config,
350354
tsImpl.sys,

0 commit comments

Comments
 (0)