aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Sergei Epatov <sepatov@readdle.com>2016-01-27 12:04:23 +0200
committerGravatar Sergei Epatov <sepatov@readdle.com>2016-01-27 12:04:23 +0200
commitd01b7c38666b48f55685d6bf0a6304d7a86e4b3f (patch)
tree87c9483a97486013becf4256e7c2531f6ecec122 /src
parenta77fcf156a317f13c773281b34bad099238bc75e (diff)
Properly handle ErrorCustomCommand in MCErrorMessage
Diffstat (limited to 'src')
-rw-r--r--src/core/abstract/MCErrorMessage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/abstract/MCErrorMessage.cpp b/src/core/abstract/MCErrorMessage.cpp
index db1495ef..2f3d2c98 100644
--- a/src/core/abstract/MCErrorMessage.cpp
+++ b/src/core/abstract/MCErrorMessage.cpp
@@ -46,14 +46,14 @@ static const char * localizedDescriptionTable[] = {
"An application specific password is required", /** MCOErrorGmailApplicationSpecificPasswordRequired */
"An error when requesting date", /** MCOErrorServerDate */
"No valid server found", /** MCOErrorNoValidServerFound */
- NULL, /** MCOErrorCustomCommand */
+ "Error while running custom command", /** MCOErrorCustomCommand */
"Cannot send message due to possible spam detected by server", /** MCOErrorSendMessageSpamSuspected */
"User is over the limit for messages allowed to be sent in a single day", /** MCOErrorSendMessageDailyLimitExceeded */
};
String * mailcore::errorMessageWithErrorCode(ErrorCode errorCode)
{
- if (errorCode < 0 || errorCode == ErrorCustomCommand) {
+ if (errorCode < 0) {
return NULL;
}
if (errorCode >= sizeof(localizedDescriptionTable) / sizeof(localizedDescriptionTable[0])) {