Update pop-up to be an error message instead of informational message (#16660)

* Update pop-up to be an error message

* Update message text

* Address comment

* Address comment
This commit is contained in:
Sakshi Sharma
2021-08-10 15:24:09 -07:00
committed by GitHub
parent b99be156ad
commit e0143e0752
2 changed files with 7 additions and 4 deletions

View File

@@ -241,7 +241,10 @@ export class ProjectsController {
.withAdditionalMeasurements({ duration: timeToFailureBuild })
.send();
vscode.window.showErrorMessage(constants.projBuildFailed(utils.getErrorMessage(err)));
const error = utils.getErrorMessage(err);
if (error !== (constants.NetCoreInstallationConfirmation || constants.NetCoreSupportedVersionInstallationConfirmation)) {
vscode.window.showErrorMessage(constants.projBuildFailed(error));
}
return '';
}
}