Skip to content

Commit bec78d1

Browse files
committed
log when path stat fails
1 parent 22eff20 commit bec78d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pluginManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ export class PluginManager {
292292
try {
293293
return fs.statSync(path.resolve(searchPath, relativePath)).isDirectory();
294294
} catch (e) {
295+
log.debug(`Ignoring path ${path.resolve(searchPath, relativePath)} - ${e.message}`);
295296
return false;
296297
}
297298
});
@@ -311,6 +312,7 @@ export class PluginManager {
311312
try {
312313
return fs.statSync(path.resolve(absolutePath, name)).isDirectory();
313314
} catch (e) {
315+
log.debug(`Ignoring path ${path.resolve(absolutePath, name)} - ${e.message}`);
314316
return false;
315317
}
316318
})

0 commit comments

Comments
 (0)