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