diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 16:55:21 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 16:55:21 +0200 |
commit | 227610b7399905fca38e0f09053d78e2e866f32e (patch) | |
tree | 133dbdfd137ada5833fa64bbf8c8873b91af82f9 /examples | |
parent | d67b886dd2cf51264e4d6da680e268015a0a7031 (diff) | |
download | sink-227610b7399905fca38e0f09053d78e2e866f32e.tar.gz sink-227610b7399905fca38e0f09053d78e2e866f32e.zip |
Ensure change-replay errors make it through to the correct error
handling and are appropriately dealt with.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index bfe43bf..29ff03b 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -680,7 +680,7 @@ public: | |||
680 | if (error) { | 680 | if (error) { |
681 | SinkWarning() << "Error during changereplay: " << error.errorMessage; | 681 | SinkWarning() << "Error during changereplay: " << error.errorMessage; |
682 | return imap->logout() | 682 | return imap->logout() |
683 | .then(KAsync::error<QByteArray>(error)); | 683 | .then(KAsync::error<QByteArray>(getError(error))); |
684 | } | 684 | } |
685 | return imap->logout() | 685 | return imap->logout() |
686 | .then(KAsync::value(remoteId)); | 686 | .then(KAsync::value(remoteId)); |