修正服务器传来警告/错误信息时弹出消息的奇怪格式

This commit is contained in:
MrZ626
2021-06-17 23:16:55 +08:00
parent f78856c58e
commit 4e9fbf6764

View File

@@ -78,17 +78,7 @@ local function _parse(res)
if mesType[res.type]then
return res
else
MES.new('warn',
"Error ws-mes type:"..(
res.type and(
res.reason and
res.type..": "..res.reason
or
res.type
)or
"[NO Message]"
)
)
MES.new('warn',("%s: %s"):format(res.type or"[?]",res.reason or"[NO Message]"))
end
end
end