修正服务器传来警告/错误信息时弹出消息的奇怪格式
This commit is contained in:
@@ -78,17 +78,7 @@ local function _parse(res)
|
|||||||
if mesType[res.type]then
|
if mesType[res.type]then
|
||||||
return res
|
return res
|
||||||
else
|
else
|
||||||
MES.new('warn',
|
MES.new('warn',("%s: %s"):format(res.type or"[?]",res.reason or"[NO Message]"))
|
||||||
"Error ws-mes type:"..(
|
|
||||||
res.type and(
|
|
||||||
res.reason and
|
|
||||||
res.type..": "..res.reason
|
|
||||||
or
|
|
||||||
res.type
|
|
||||||
)or
|
|
||||||
"[NO Message]"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user