提交 e0499ba3 编写于 作者: B Benjamin Pasero

status - guard against EPERM errors from workspace stats

上级 9eeb9e69
......@@ -41,8 +41,14 @@ export function printDiagnostics(info: IMainProcessInfo): Promise<any> {
window.folders.forEach(folder => {
console.log(`| Folder (${basename(folder)})`);
const stats = collectWorkspaceStats(folder, ['node_modules', '.git']);
console.log(formatWorkspaceStats(stats));
let stats: WorkspaceStats;
try {
stats = collectWorkspaceStats(folder, ['node_modules', '.git']);
console.log(formatWorkspaceStats(stats));
} catch (error) {
console.log('Unable to collect workpsace stats for this folder');
}
const launchConfigs = collectLaunchConfigs(folder);
if (launchConfigs.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册