From d01b7c38666b48f55685d6bf0a6304d7a86e4b3f Mon Sep 17 00:00:00 2001 From: Sergei Epatov Date: Wed, 27 Jan 2016 12:04:23 +0200 Subject: Properly handle ErrorCustomCommand in MCErrorMessage --- src/core/abstract/MCErrorMessage.cpp | 4 ++-- 1 file 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])) { -- cgit v1.2.3