fix test connection error msg

This commit is contained in:
yuri
2015-06-23 11:36:01 +03:00
parent 50e825b7a0
commit 5bbb5ee937
@@ -87,7 +87,10 @@ Espo.define('Views.EmailAccount.Fields.TestConnection', 'Views.Fields.Base', fun
statusReason = statusReason.replace(/ $/, '');
statusReason = statusReason.replace(/,$/, '');
var msg = this.translate('Error') + ' ' + xhr.status;
var msg = this.translate('Error');
if (xhr.status != 200) {
msg += ' ' + xhr.status;
}
if (statusReason) {
msg += ': ' + statusReason;
}