diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 09:38:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 09:38:28 +0200 |
commit | f99a8084b875815dc18ae67eeaed3919e8249463 (patch) | |
tree | 5522f4353089e9a0775725129c8a152152ba14fe /examples/imapresource/imapresource.cpp | |
parent | 8c27163cff4090abc9664eca1895931bc0bd14d1 (diff) | |
download | sink-f99a8084b875815dc18ae67eeaed3919e8249463.tar.gz sink-f99a8084b875815dc18ae67eeaed3919e8249463.zip |
Don't use 0 as error code and better error codes
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-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 5dce875..077795a 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -473,7 +473,7 @@ public: | |||
473 | { | 473 | { |
474 | if (error) { | 474 | if (error) { |
475 | if (error.errorCode == Imap::CouldNotConnectError) { | 475 | if (error.errorCode == Imap::CouldNotConnectError) { |
476 | return {ApplicationDomain::LoginError, error.errorMessage}; | 476 | return {ApplicationDomain::ConnectionError, error.errorMessage}; |
477 | } else if (error.errorCode == Imap::SslHandshakeError) { | 477 | } else if (error.errorCode == Imap::SslHandshakeError) { |
478 | return {ApplicationDomain::LoginError, error.errorMessage}; | 478 | return {ApplicationDomain::LoginError, error.errorMessage}; |
479 | } | 479 | } |