Skip to content

Commit 62595cc

Browse files
committed
add more logging
1 parent 806de1c commit 62595cc

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
@@ -24,6 +24,8 @@ function Push-CIPPStandard {
2424
Write-Information "Standard $($Standard) completed for tenant $($Tenant)"
2525
} catch {
2626
Write-LogMessage -API 'Standards' -tenant $Tenant -message "Error running standard $($Standard) for tenant $($Tenant) - $($_.Exception.Message)" -sev Error -LogData (Get-CippException -Exception $_)
27+
Write-Warning "Error running standard $($Standard) for tenant $($Tenant) - $($_.Exception.Message)"
28+
Write-Information $_.InvocationInfo.PositionMessage
2729
throw $_.Exception.Message
2830
}
2931
}

0 commit comments

Comments
 (0)