handle no alert data

This commit is contained in:
2024-06-21 17:04:17 -04:00
parent 7986d28dfc
commit cbdca2b4eb
+3
View File
@@ -1,3 +1,6 @@
# Eval the alert data
If ( -not $AlertData ) { Write-Error "No alert data provided" ; Return }
# Create ticket
Import-Module $env:SyncroModule -WarningAction SilentlyContinue
$TicketSubject = 'App Crash on ' + $Env:COMPUTERNAME