Skip to content

Commit 806de1c

Browse files
committed
Update Push-CIPPStandard.ps1
1 parent 09c821d commit 806de1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandard.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ function Push-CIPPStandard {
2121
}
2222
try {
2323
& $FunctionName -Tenant $Item.Tenant -Settings $Item.Settings -ErrorAction Stop
24+
Write-Information "Standard $($Standard) completed for tenant $($Tenant)"
2425
} catch {
26+
Write-LogMessage -API 'Standards' -tenant $Tenant -message "Error running standard $($Standard) for tenant $($Tenant) - $($_.Exception.Message)" -sev Error -LogData (Get-CippException -Exception $_)
2527
throw $_.Exception.Message
2628
}
2729
}

0 commit comments

Comments
 (0)