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

💄

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