diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index a4b25b08d23..ad05002fbfe 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -287,11 +287,11 @@ module ts { export function readConfigFile(fileName: string): { config?: any; error?: Diagnostic } { try { var text = sys.readFile(fileName); - return parseConfigFileText(fileName, text); } catch (e) { return { error: createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message) }; } + return parseConfigFileText(fileName, text); } /**