Skip to content

Commit e9f8420

Browse files
committed
(chocolatey#1039) Improved automate-package-internalization.mdx's script for cases when chocolatey is not installed
1 parent 476251c commit e9f8420

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content/docs/en-us/guides/organizations/automate-package-internalization.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ Before starting, make sure you install Chocolatey Server on separate servers.
102102
}
103103
104104
if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) {
105-
Write-Warning "Chocolatey not installed. Cannot install standard packages."
106-
Exit 1
105+
Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop
107106
}
108107
109108
# Install Chocolatey.Server prereqs

0 commit comments

Comments
 (0)