Skip to content

Commit de2ee7e

Browse files
lordnoxkamilogorek
authored andcommitted
fixed #1491
1 parent 02f2298 commit de2ee7e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/node/src/parsers.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ async function readSourceFiles(
7878

7979
await Promise.all(
8080
filenames.map(async filename => {
81-
const content = await readFileAsync(filename);
81+
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+
}
8288
if (typeof content === 'string') {
8389
sourceFiles[filename] = content;
8490
}

0 commit comments

Comments
 (0)