diff --git a/src/functions/public/API/Invoke-GitHubAPI.ps1 b/src/functions/public/API/Invoke-GitHubAPI.ps1 index aa6b464e..9154b3b7 100644 --- a/src/functions/public/API/Invoke-GitHubAPI.ps1 +++ b/src/functions/public/API/Invoke-GitHubAPI.ps1 @@ -231,7 +231,7 @@ $($failure.Exception.Response | ConvertFrom-HashTable | Format-List | Out-String ----------------------------------`n`r "@ - $errorResult.Split([System.Environment]::NewLine) | ForEach-Object { Write-Error $_ } + Write-Error $errorResult throw $failure.Exception.Message } }