Skip to content

Commit

Permalink
(GH-666) pass Write-ChocolateyError message param
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Mar 26, 2016
1 parent f8a357a commit def91a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nuget/chocolatey/tools/chocolateysetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ param (
}

function Write-ChocolateyError {
param (
[string]$message = ''
)

try {
Write-Host "ERROR: $message" -ForegroundColor "Red" -ErrorAction "Stop"
} catch {
Expand Down

0 comments on commit def91a5

Please sign in to comment.