Handle Error Body in Responses from Broker (#3454)

This commit is contained in:
Luke Tomlinson
2024-09-05 17:08:57 -04:00
committed by GitHub
parent 65764d9ddc
commit 4c0a43f0e4
4 changed files with 69 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ namespace GitHub.Runner.Common
public bool ShouldRetryException(Exception ex)
{
if (ex is AccessDeniedException ade && ade.ErrorCode == 1)
if (ex is AccessDeniedException ade)
{
return false;
}