diff options
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(); |