Skip to content

Commit 8c6612b

Browse files
committed
Tweak message text
1 parent 6fe6cb3 commit 8c6612b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/services.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ namespace ts {
11581158
function getValidSourceFile(fileName: string): SourceFile {
11591159
const sourceFile = program.getSourceFile(fileName);
11601160
if (!sourceFile) {
1161-
const error: Error & PossibleProgramFileInfo = new Error(`Could not find sourceFile: '${fileName}'.`);
1161+
const error: Error & PossibleProgramFileInfo = new Error(`Could not find source file: '${fileName}'.`);
11621162

11631163
// We've been having trouble debugging this, so attach sidecar data for the tsserver log.
11641164
// See https://github.com/microsoft/TypeScript/issues/30180.

src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ namespace ts.projectSystem {
139139
assert.isTrue(false, `should not find file '${imported.path}'`);
140140
}
141141
catch (e) {
142-
assert.isTrue(e.message.indexOf(`Could not find sourceFile: '${imported.path}'.`) === 0, `Actual: ${e.message}`);
142+
assert.isTrue(e.message.indexOf(`Could not find source file: '${imported.path}'.`) === 0, `Actual: ${e.message}`);
143143
}
144144
const f2Lookups = getLocationsForModuleLookup("f2");
145145
callsTrackingHost.verifyCalledOnEachEntryNTimes(CalledMapsWithSingleArg.fileExists, f2Lookups, 1);

0 commit comments

Comments
 (0)