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:
parent
a89fc7d1e0
commit
c3749c4fdc
7 changed files with 36 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue