Skip to content

Commit

Permalink
Properly handle ErrorCustomCommand in MCErrorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Epatov committed Jan 27, 2016
1 parent a77fcf1 commit d01b7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/abstract/MCErrorMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit d01b7c3

Please sign in to comment.