Skip to content

Commit

Permalink
fix: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kuojianlu committed Jun 24, 2021
1 parent 8a99e51 commit 9658921
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vscode-extension/src/debug/teamsfxTaskHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ async function onDidEndTaskProcessHandler(event: vscode.TaskProcessEndEvent): Pr

let npmInstallLogInfo: NpmInstallLogInfo | undefined;
try {
npmInstallLogInfo = await getNpmInstallLogInfo();
if (cwd !== undefined && event.exitCode !== undefined && event.exitCode !== 0) {
npmInstallLogInfo = await getNpmInstallLogInfo();
}
} catch {
// ignore any error
}
Expand Down

0 comments on commit 9658921

Please sign in to comment.