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:
Trial97 2025-05-07 10:11:45 +03:00
parent a89fc7d1e0
commit c3749c4fdc
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
7 changed files with 36 additions and 8 deletions

View file

@ -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;
}