From 476251cbe0a4efb41404c596c8f9a821afea5fa3 Mon Sep 17 00:00:00 2001 From: "Lea N. - LeaDevelop" <104503492+LeaDevelop@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:15:45 +0100 Subject: [PATCH] (#1039) Improved flow for cases when chocolatey is not installed --- .../en-us/guides/organizations/set-up-chocolatey-server.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content/docs/en-us/guides/organizations/set-up-chocolatey-server.mdx b/src/content/docs/en-us/guides/organizations/set-up-chocolatey-server.mdx index 76b2da5928..1bd5fdb654 100644 --- a/src/content/docs/en-us/guides/organizations/set-up-chocolatey-server.mdx +++ b/src/content/docs/en-us/guides/organizations/set-up-chocolatey-server.mdx @@ -138,8 +138,7 @@ function New-AclObject { } if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) { - Write-Warning "Chocolatey not installed. Cannot install standard packages." - Exit 1 + Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop } # Install Chocolatey.Server prereqs choco install IIS-WebServer --source windowsfeatures