Fix error message

This commit is contained in:
Andy Hanson 2017-07-17 12:38:11 -07:00
parent 96d537bc54
commit 2ce23909b2

View File

@ -913,7 +913,7 @@ namespace ts {
catch (e) {
return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);
}
return text === undefined ? createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, "File does not exist.") : text;
return text === undefined ? createCompilerDiagnostic(Diagnostics.The_specified_path_does_not_exist_Colon_0, fileName) : text;
}
function commandLineOptionsToMap(options: CommandLineOption[]) {