diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-22 14:15:26 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-22 14:38:56 +0200 |
commit | acd2902aaecaba864c5673adead98e59222e0fc9 (patch) | |
tree | 49b425a637e082f1259ed1678de3410d6146bc8c /common/listener.cpp | |
parent | ecf5bd3c4fd8557b06c6849b317d8d3ccaca528f (diff) | |
download | sink-acd2902aaecaba864c5673adead98e59222e0fc9.tar.gz sink-acd2902aaecaba864c5673adead98e59222e0fc9.zip |
Propagate the synchronization error.
Diffstat (limited to 'common/listener.cpp')
-rw-r--r-- | common/listener.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/listener.cpp b/common/listener.cpp index de20b2c..6cbf40f 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -252,6 +252,9 @@ void Listener::processCommand(int commandId, uint messageId, const QByteArray &c | |||
252 | job.then<void>([callback, timer]() { | 252 | job.then<void>([callback, timer]() { |
253 | Trace() << "Sync took " << Sink::Log::TraceTime(timer->elapsed()); | 253 | Trace() << "Sync took " << Sink::Log::TraceTime(timer->elapsed()); |
254 | callback(true); | 254 | callback(true); |
255 | }, [callback](int errorCode, const QString &msg) { | ||
256 | Warning() << "Sync failed: " << msg; | ||
257 | callback(false); | ||
255 | }) | 258 | }) |
256 | .exec(); | 259 | .exec(); |
257 | return; | 260 | return; |