diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-24 10:50:28 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-24 10:50:28 +0100 |
commit | c607a01b6931604baffef846dccad38f7a71a192 (patch) | |
tree | 3d29fc49740068c5c66f5da95aea11d884e5a30e /framework/domain/controller.cpp | |
parent | 1bafda42888c37b47bdd5d18118bf3e6912f0f82 (diff) | |
parent | 07b55e8e8b21873eeb5b39f1306f6665b1630c46 (diff) | |
download | kube-c607a01b6931604baffef846dccad38f7a71a192.tar.gz kube-c607a01b6931604baffef846dccad38f7a71a192.zip |
Merge branch 'dev/imapsync' into develop
Diffstat (limited to 'framework/domain/controller.cpp')
-rw-r--r-- | framework/domain/controller.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/domain/controller.cpp b/framework/domain/controller.cpp index fb971136..52f4cd1f 100644 --- a/framework/domain/controller.cpp +++ b/framework/domain/controller.cpp | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #include <QQmlEngine> | 21 | #include <QQmlEngine> |
22 | #include <QMetaProperty> | 22 | #include <QMetaProperty> |
23 | #include <sink/log.h> | ||
23 | 24 | ||
24 | using namespace Kube; | 25 | using namespace Kube; |
25 | 26 | ||
@@ -49,6 +50,9 @@ void Controller::clear() | |||
49 | void Controller::run(const KAsync::Job<void> &job) | 50 | void Controller::run(const KAsync::Job<void> &job) |
50 | { | 51 | { |
51 | auto jobToExec = job; | 52 | auto jobToExec = job; |
53 | jobToExec.onError([] (const KAsync::Error &error) { | ||
54 | SinkWarningCtx(Sink::Log::Context{"controller"}) << "Error while executing job: " << error.errorMessage; | ||
55 | }); | ||
52 | //TODO handle error | 56 | //TODO handle error |
53 | //TODO attach a log context to the execution that we can gather from the job? | 57 | //TODO attach a log context to the execution that we can gather from the job? |
54 | jobToExec.exec(); | 58 | jobToExec.exec(); |