diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 12:46:50 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 12:51:24 +0100 |
commit | 654092d41253ff993095b845a6c3e338a563547e (patch) | |
tree | 89c9e7b7efb2b7a079079b140d3e315eae68d0ef /framework/domain/controller.cpp | |
parent | 8facecfbeb4539275fce77b4a07a6a1cfad32052 (diff) | |
download | kube-654092d41253ff993095b845a6c3e338a563547e.tar.gz kube-654092d41253ff993095b845a6c3e338a563547e.zip |
Fix mail sending
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(); |