DEPRECATED - DO NOT USE.
Write-ChocolateyFailure `
[-PackageName <String>] `
[-FailureMessage <String>]Throws the error message as an error.
This has been deprecated and is no longer useful as of 0.9.9. Instead
please just use throw $_.Exception when catching errors. Although
try/catch is no longer necessary unless you want to do some error
handling.
None
None
None
The name of the package - while this is an arbitrary value, it's recommended that it matches the package id.
| Property | Value |
|---|---|
| Aliases | |
| Required? | false |
| Position? | 1 |
| Default Value | |
| Accept Pipeline Input? | false |
The message to throw an error with.
| Property | Value |
|---|---|
| Aliases | |
| Required? | false |
| Position? | 2 |
| Default Value | |
| Accept Pipeline Input? | false |
- [[Write-ChocolateySuccess|HelpersWriteChocolateySuccess]]
[[Function Reference|HelpersReference]]
NOTE: This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Write-ChocolateyFailure -Full.