feat: add sink fail reason and correctly propagate it through the NetRequest
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -118,10 +118,14 @@ void ConcurrentTask::executeNextSubTask()
|
||||
}
|
||||
if (m_queue.isEmpty()) {
|
||||
if (m_doing.isEmpty()) {
|
||||
if (m_failed.isEmpty())
|
||||
if (m_failed.isEmpty()) {
|
||||
emitSucceeded();
|
||||
else
|
||||
} else if (m_failed.count() == 1) {
|
||||
auto task = m_failed.keys().first();
|
||||
emitFailed(task->failReason());
|
||||
} else {
|
||||
emitFailed(tr("One or more subtasks failed"));
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user