Skip to content

CI throws exception on failed task #101

@AnakinRaW

Description

@AnakinRaW

According to code, each task has an Exception property, however this cannot get used, because we call Task.WaitAll() in EawXBuildApplication. This means: Once we recieve an exception from a task, this method thorws an AggregateException.
All code behind this call (and all the logging with it) is gone.

Suggested Fix:

try
 {
    Task.WaitAll(tasks.ToArray());
}
catch (AggregateException)
{
    // Eat exception
}
catch (Exception e)
{
    _logger.LogCritical($"Internal pipeline error {e.Message}\n{e.Message}");
    throw e;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions