Skip to content

Commit

Permalink
Better step timeout message.
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang committed Feb 22, 2024
1 parent d296014 commit 9f67a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.Worker/StepsRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private async Task RunStepAsync(IStep step, CancellationToken jobCancellationTok
!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
Expand Down

0 comments on commit 9f67a1f

Please sign in to comment.