Skip to content

Commit

Permalink
Stop throwing for local file 404s, instead warn in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 9, 2023
1 parent da60f47 commit b35b70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript/SourceFileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class SourceFileManager {
if (this.sourceFileCache.has(filePath)) return this.sourceFileCache.get(filePath);
const contents = ts.sys.readFile(filePath);
if (typeof contents !== 'string') {
if (isInternal(filePath)) throw new Error(`Unable to read ${filePath}`);
if (isInternal(filePath)) debugLog(`Unable to read ${filePath}`);
return this.createSourceFile(filePath, '');
}
const ext = extname(filePath);
Expand Down

0 comments on commit b35b70d

Please sign in to comment.