Update samy.ps1

This commit is contained in:
2025-12-05 15:08:03 -05:00
parent a4f41f809b
commit 1481fe9c1d

View File

@@ -1361,7 +1361,7 @@ function Send-JSON {
$Context.Response.OutputStream.Close()
}
catch {
# Last-resort error handling don't let the whole request crash
# Last-resort error handling - don't let the whole request crash
Write-LogHybrid "Send-JSON fatal error: $($_.Exception.Message)" Error Printers -LogToEvent
try {
$fallback = '[]'
@@ -1372,7 +1372,7 @@ function Send-JSON {
$Context.Response.OutputStream.Close()
}
catch {
# If even this fails, just give up silently we've already logged it.
# If even this fails, just give up silently - we've already logged it.
}
}
}