Better step timeout message. (#3166)

This commit is contained in:
Tingluo Huang
2024-02-26 10:37:59 -05:00
committed by GitHub
parent 034c51cd0b
commit 601d3de3f3

View File

@@ -295,7 +295,7 @@ namespace GitHub.Runner.Worker
!jobCancellationToken.IsCancellationRequested)
{
Trace.Error($"Caught timeout exception from step: {ex.Message}");
step.ExecutionContext.Error("The action has timed out.");
step.ExecutionContext.Error($"The action '{step.DisplayName}' has timed out after {timeoutMinutes} minutes.");
step.ExecutionContext.Result = TaskResult.Failed;
}
else