ssl: ssl,
password: password
}, function(err, new_connection) {
- var translated_err_text = {text: translateText('client_models_application_connection_error', [server, port.toString(), err.toString()])};
+ var translated_err;
if (err) {
- that.app.panels().active.addMsg('', styleText('server_connecting_error', translated_err_text));
+ translated_err = translateText('client_models_application_connection_error', [server, port.toString(), err.toString()]);
+ that.app.panels().active.addMsg('', styleText('server_connecting_error', {text: translated_err}));
}
});
}