Added throw exception, to the set method fails and depending resources won't be executed
This commit is contained in:
Родитель
3e438651e6
Коммит
dfc5eb25cc
|
@ -74,6 +74,7 @@ function Set-TargetResource
|
|||
{
|
||||
Write-Verbose -Message "[ERROR] An error occured while downloading $SourcePath"
|
||||
Write-Verbose -Message " Error details: $($result.ErrorDescription)"
|
||||
throw "Error while downloading $SourcePath"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче