Skip to content

Commit 476251c

Browse files
committed
(chocolatey#1039) Improved flow for cases when chocolatey is not installed
1 parent d658ca2 commit 476251c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content/docs/en-us/guides/organizations/set-up-chocolatey-server.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ function New-AclObject {
138138
}
139139
140140
if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) {
141-
Write-Warning "Chocolatey not installed. Cannot install standard packages."
142-
Exit 1
141+
Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop
143142
}
144143
# Install Chocolatey.Server prereqs
145144
choco install IIS-WebServer --source windowsfeatures

0 commit comments

Comments
 (0)