We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c28480 commit abc2301Copy full SHA for abc2301
1 file changed
src/compiler/tsc.ts
@@ -349,6 +349,11 @@ namespace ts {
349
350
const result = parseConfigFileTextToJson(configFileName, cachedConfigFileText);
351
const configObject = result.config;
352
+ if (!configObject) {
353
+ reportDiagnostics([result.error], /* compilerHost */ undefined);
354
+ sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
355
+ return;
356
+ }
357
const configParseResult = parseJsonConfigFileContent(configObject, sys, getDirectoryPath(configFileName));
358
if (configParseResult.errors.length > 0) {
359
reportDiagnostics(configParseResult.errors, /* compilerHost */ undefined);
0 commit comments