SMTP errors for client side (labs.smtp_show_server_errors)

This commit is contained in:
RainLoop Team 2014-01-08 01:49:23 +04:00
parent 9334187954
commit 2c1087b987
11 changed files with 88 additions and 43 deletions

View file

@ -330,6 +330,7 @@ Enums.Notification = {
'AccountAlreadyExists': 801,
'MailServerError': 901,
'ClientViewError': 902,
'UnknownNotification': 999,
'UnknownError': 999
};

View file

@ -539,11 +539,17 @@ Utils.log = function (sDesc)
/**
* @param {number} iCode
* @param {ыекштп=} mMessage = ''
* @return {string}
*/
Utils.getNotification = function (iCode)
Utils.getNotification = function (iCode, mMessage)
{
iCode = Utils.pInt(iCode);
if (Enums.Notification.ClientViewError === iCode && mMessage)
{
return mMessage;
}
return Utils.isUnd(NotificationI18N[iCode]) ? '' : NotificationI18N[iCode];
};