Issue 1261: inconsistency of outputs (both canceled and cancelled are used) (#1624)

* Issue 1261: inconsistency of outputs

* Changing cancelled to canceled in one error message
This commit is contained in:
ruvceskistefan
2022-02-23 15:48:24 +01:00
committed by GitHub
parent 28f0027938
commit 934027da60
9 changed files with 16 additions and 16 deletions

View File

@@ -131,9 +131,9 @@ namespace GitHub.Runner.Worker
}
catch (OperationCanceledException ex) when (jobContext.CancellationToken.IsCancellationRequested)
{
// set the job to canceled
// set the job to cancelled
// don't log error issue to job ExecutionContext, since server owns the job level issue
Trace.Error($"Job is canceled during initialize.");
Trace.Error($"Job is cancelled during initialize.");
Trace.Error($"Caught exception: {ex}");
return await CompleteJobAsync(jobServer, jobContext, message, TaskResult.Canceled);
}