mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Switch from InnerException to ErrorCode on disableupdate check (#2718)
This commit is contained in:
@@ -138,7 +138,7 @@ namespace GitHub.Runner.Listener
|
||||
}
|
||||
|
||||
}
|
||||
catch (AccessDeniedException e) when (e.InnerException is InvalidTaskAgentVersionException)
|
||||
catch (AccessDeniedException e) when (e.ErrorCode == 1)
|
||||
{
|
||||
terminal.WriteError($"An error occured: {e.Message}");
|
||||
trace.Error(e);
|
||||
|
||||
Reference in New Issue
Block a user