Commit 416c9cff by Kim Peace

Fixed to display error on error handling for emit join method

parent 6d49b7f4
...@@ -153,7 +153,7 @@ CHAT_SOCKET.emitJoin = function ( ...@@ -153,7 +153,7 @@ CHAT_SOCKET.emitJoin = function (
socket.emit(SOCKET_KEY.JOIN, joinInfo, function (err) { socket.emit(SOCKET_KEY.JOIN, joinInfo, function (err) {
if (err) { if (err) {
if (needsHandlingError) { if (needsHandlingError) {
errorHandlingForEmitJoin(); errorHandlingForEmitJoin(err);
} }
if (needsDismissLoadingIndicator) { if (needsDismissLoadingIndicator) {
Common.dismissLoadingIndicator(); Common.dismissLoadingIndicator();
...@@ -168,7 +168,7 @@ CHAT_SOCKET.emitJoin = function ( ...@@ -168,7 +168,7 @@ CHAT_SOCKET.emitJoin = function (
}); });
}; };
var errorHandlingForEmitJoin = function () { var errorHandlingForEmitJoin = function (err) {
// #36174 // #36174
$("#customAlertTitle").text(err); $("#customAlertTitle").text(err);
$("#customAlertOk").text(getLocalizedString("yesTitle")); $("#customAlertOk").text(getLocalizedString("yesTitle"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment