Skip to content

Commit

Permalink
Build not failing when an error occurs.
Browse files Browse the repository at this point in the history
  • Loading branch information
splatteredbits committed Nov 22, 2019
1 parent 577f635 commit 1b273a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function Resolve-WhiskeyPowerShellModule
Set-StrictMode -Version 'Latest'
Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState

Write-WhiskeyVerbose -Message ('Resolve-WhiskeyPowerShellModule ErrorActionPreference {0}' -f $ErrorActionPreference) -Verbose

$modulesRoot = Join-Path -Path $BuildRoot -ChildPath $powerShellModulesDirectoryName
if( $Path )
{
Expand Down
2 changes: 2 additions & 0 deletions Whiskey/Tasks/GetPowerShellModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function Get-WhiskeyPowerShellModule
Set-StrictMode -Version 'Latest'
Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState

Write-WhiskeyVerbose -Message ('GetPowerShellModule ErrorActionPreference {0}' -f $ErrorActionPreference) -Verbose

if( -not $Name )
{
Stop-WhiskeyTask -TaskContext $TaskContext -Message 'Property "Name" is mandatory. It should be set to the name of the PowerShell module you want installed.'
Expand Down

0 comments on commit 1b273a2

Please sign in to comment.