Commit da8e125a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Report errors in snap backend

For now only in stdout
parent 8520cc40
......@@ -134,6 +134,10 @@ ResultsStream* SnapBackend::populate(T* job, AbstractResource::State state)
auto stream = new ResultsStream(QStringLiteral("Snap-populate"));
connect(job, &QSnapdFindRequest::complete, stream, [stream, this, state, job]() {
if (job->error()) {
qDebug() << "error:" << job->error() << job->errorString();
return;
}
QSet<SnapResource*> higher = kFilter<QSet<SnapResource*>>(m_resources, [state](AbstractResource* res){ return res->state()>=state; });
QVector<AbstractResource*> ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment