Skip to content

Commit d01b7c3

Browse files
author
Sergei Epatov
committed
Properly handle ErrorCustomCommand in MCErrorMessage
1 parent a77fcf1 commit d01b7c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/abstract/MCErrorMessage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ static const char * localizedDescriptionTable[] = {
4646
"An application specific password is required", /** MCOErrorGmailApplicationSpecificPasswordRequired */
4747
"An error when requesting date", /** MCOErrorServerDate */
4848
"No valid server found", /** MCOErrorNoValidServerFound */
49-
NULL, /** MCOErrorCustomCommand */
49+
"Error while running custom command", /** MCOErrorCustomCommand */
5050
"Cannot send message due to possible spam detected by server", /** MCOErrorSendMessageSpamSuspected */
5151
"User is over the limit for messages allowed to be sent in a single day", /** MCOErrorSendMessageDailyLimitExceeded */
5252
};
5353

5454
String * mailcore::errorMessageWithErrorCode(ErrorCode errorCode)
5555
{
56-
if (errorCode < 0 || errorCode == ErrorCustomCommand) {
56+
if (errorCode < 0) {
5757
return NULL;
5858
}
5959
if (errorCode >= sizeof(localizedDescriptionTable) / sizeof(localizedDescriptionTable[0])) {

0 commit comments

Comments
 (0)