summaryrefslogtreecommitdiffstats
path: root/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r--dummyresource/resourcefactory.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp
index 10c8eaf..9d702a8 100644
--- a/dummyresource/resourcefactory.cpp
+++ b/dummyresource/resourcefactory.cpp
@@ -170,7 +170,7 @@ private slots:
170 170
171 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(ptr), size); 171 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(ptr), size);
172 if (!Akonadi2::VerifyQueuedCommandBuffer(verifyer)) { 172 if (!Akonadi2::VerifyQueuedCommandBuffer(verifyer)) {
173 qWarning() << "invalid buffer"; 173 Warning() << "invalid buffer";
174 callback(false); 174 callback(false);
175 return; 175 return;
176 } 176 }
@@ -185,13 +185,13 @@ private slots:
185 callback(true); 185 callback(true);
186 }, 186 },
187 [callback](int errorCode, QString errorMessage) { 187 [callback](int errorCode, QString errorMessage) {
188 Warning() << errorMessage; 188 Warning() << "Error while processing queue command: " << errorMessage;
189 callback(false); 189 callback(false);
190 } 190 }
191 ).exec(); 191 ).exec();
192 }, 192 },
193 [&future](const MessageQueue::Error &error) { 193 [&future](const MessageQueue::Error &error) {
194 Warning() << error.message; 194 Warning() << "Error while getting message from messagequeue: " << error.message;
195 future.setValue(false); 195 future.setValue(false);
196 future.setFinished(); 196 future.setFinished();
197 } 197 }
@@ -209,6 +209,7 @@ private slots:
209 [it, this](Async::Future<void> &future) { 209 [it, this](Async::Future<void> &future) {
210 auto queue = it->next(); 210 auto queue = it->next();
211 processQueue(queue).then<void>([&future]() { 211 processQueue(queue).then<void>([&future]() {
212 Trace() << "Queue processed";
212 future.setFinished(); 213 future.setFinished();
213 }).exec(); 214 }).exec();
214 } 215 }