We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f2298 commit de2ee7eCopy full SHA for de2ee7e
packages/node/src/parsers.ts
@@ -78,7 +78,13 @@ async function readSourceFiles(
78
79
await Promise.all(
80
filenames.map(async filename => {
81
- const content = await readFileAsync(filename);
+ let content;
82
+ try {
83
+ content = await readFileAsync(filename);
84
+ } catch (_) {
85
+ // unsure what to add here as the file is unreadable
86
+ content = null;
87
+ }
88
if (typeof content === 'string') {
89
sourceFiles[filename] = content;
90
}
0 commit comments