Update samy.ps1
This commit is contained in:
4
samy.ps1
4
samy.ps1
@@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user