diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 09:24:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 09:24:06 +0100 |
commit | cd5ecf7b381ebc76196931e213c92664c3443be8 (patch) | |
tree | 0f8beca5b6e7c62ff503c0b8fcfcd12bcc91a1be /examples/imapresource/imapresource.cpp | |
parent | 9e8d4bac334e727368ada48676a21d52030b97cc (diff) | |
download | sink-cd5ecf7b381ebc76196931e213c92664c3443be8.tar.gz sink-cd5ecf7b381ebc76196931e213c92664c3443be8.zip |
Make error codes part of the applicationdomain interface
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index fff4dc7..b27c2b2 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -488,7 +488,7 @@ public: | |||
488 | SinkWarning() << "Error during folder sync: " << error.errorMessage; | 488 | SinkWarning() << "Error during folder sync: " << error.errorMessage; |
489 | } | 489 | } |
490 | return imap->logout() | 490 | return imap->logout() |
491 | .then(KAsync::error(error)); | 491 | .then(KAsync::error(ApplicationDomain::LoginError, error.errorMessage)); |
492 | }); | 492 | }); |
493 | } else if (query.type() == ApplicationDomain::getTypeName<ApplicationDomain::Mail>()) { | 493 | } else if (query.type() == ApplicationDomain::getTypeName<ApplicationDomain::Mail>()) { |
494 | //TODO | 494 | //TODO |
@@ -560,7 +560,7 @@ public: | |||
560 | SinkWarning() << "Error during sync: " << error.errorMessage; | 560 | SinkWarning() << "Error during sync: " << error.errorMessage; |
561 | } | 561 | } |
562 | return imap->logout() | 562 | return imap->logout() |
563 | .then(KAsync::error(error)); | 563 | .then(KAsync::error(ApplicationDomain::LoginError, error.errorMessage)); |
564 | }); | 564 | }); |
565 | } | 565 | } |
566 | return KAsync::error<void>("Nothing to do"); | 566 | return KAsync::error<void>("Nothing to do"); |