Skip to content

Commit d9780cd

Browse files
committed
Include fewer paths in exception
It's sufficient to append them to the log.
1 parent b24050a commit d9780cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
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-
throw new Error(`Could not find sourceFile: '${fileName}' in ${program && JSON.stringify(program.getSourceFiles().map(f => f.fileName))}.`);
1161+
throw new Error(`Could not find sourceFile: '${fileName}'.`);
11621162
}
11631163
return sourceFile;
11641164
}

0 commit comments

Comments
 (0)