Update testTaskGate.ps1
This commit is contained in:
@@ -244,7 +244,7 @@ function Handle-FetchSites {
|
||||
$Context.Response.OutputStream.Write($bytes, 0, $bytes.Length)
|
||||
|
||||
} catch {
|
||||
Write-LogHybrid "Handle-FetchSites failed: $($_.Exception.Message)" "Error" "Server"
|
||||
Write-LogHybrid -Message "Handle-FetchSites failed: $($_.Exception.Message)" -Level "Error" -TaskCategory "Server" -LogToEvent:$true
|
||||
$Context.Response.StatusCode = 500
|
||||
$Context.Response.OutputStream.Write([Text.Encoding]::UTF8.GetBytes("[]"), 0, 2)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user