Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
include the task id in the prerequisite task failure message (#3219)
Browse files Browse the repository at this point in the history
Co-authored-by: George Pollard <gpollard@microsoft.com>
  • Loading branch information
chkeita and Porges authored Jun 27, 2023
1 parent 7c0dc7b commit c6d546d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ApiService/ApiService/onefuzzlib/TaskOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ public async Async.Task MarkFailed(Task task, Error error, List<Task>? taskInJob

var dependentError =
error.Code == ErrorCode.TASK_CANCELLED
? Error.Create(ErrorCode.TASK_CANCELLED, $"prerequisite task is cancelled.")
: Error.Create(ErrorCode.TASK_FAILED, $"prerequisite task is failed.");
? Error.Create(ErrorCode.TASK_CANCELLED, $"prerequisite task '{task.TaskId}' is cancelled.")
: Error.Create(ErrorCode.TASK_FAILED, $"prerequisite task '{task.TaskId}' is failed.");


foreach (var t in taskInJob) {
if (t.Config.PrereqTasks != null) {
if (t.Config.PrereqTasks.Contains(task.TaskId)) {
Expand Down

0 comments on commit c6d546d

Please sign in to comment.