mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Switch from InnerException to ErrorCode on disableupdate check (#2718)
This commit is contained in:
@@ -97,7 +97,7 @@ namespace GitHub.Runner.Listener
|
||||
Trace.Info("Runner OAuth token has been revoked. Unable to pull message.");
|
||||
throw;
|
||||
}
|
||||
catch (AccessDeniedException e) when (e.InnerException is InvalidTaskAgentVersionException)
|
||||
catch (AccessDeniedException e) when (e.ErrorCode == 1)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user