Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
da8e125a
Commit
da8e125a
authored
Jan 15, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report errors in snap backend
For now only in stdout
parent
8520cc40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libdiscover/backends/SnapBackend/SnapBackend.cpp
libdiscover/backends/SnapBackend/SnapBackend.cpp
+4
-0
No files found.
libdiscover/backends/SnapBackend/SnapBackend.cpp
View file @
da8e125a
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment