Ignore errors in getContentOfType
| @@ -232,6 +232,7 @@ function getContentOfType(type, format) { | ||
| 232 | 232 | if (!item.folder) { |
| 233 | 233 | continue; |
| 234 | 234 | } |
| 235 | + try { | |
| 235 | 236 | const filePath = path.join(item.folder, item.filename); |
| 236 | 237 | const fileContent = fs.readFileSync(filePath); |
| 237 | 238 | switch (format) { |
| @@ -245,6 +246,9 @@ function getContentOfType(type, format) { | ||
| 245 | 246 | files.push(fileContent); |
| 246 | 247 | break; |
| 247 | 248 | } |
| 249 | + } catch { | |
| 250 | + // Ignore errors | |
| 251 | + } | |
| 248 | 252 | } |
| 249 | 253 | return files; |
| 250 | 254 | } |