Skip to content

Commit

Permalink
Send all errors on API calls in one string
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Dec 2, 2024
1 parent ea2ddb0 commit d6e5738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/public/API/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit d6e5738

Please sign in to comment.