修正服务器传来警告/错误信息时弹出消息的奇怪格式
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user