From 4e9fbf6764966712cedcaa68c91934e9fd4b1db0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 17 Jun 2021 23:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E4=BC=A0=E6=9D=A5=E8=AD=A6=E5=91=8A/=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=97=B6=E5=BC=B9=E5=87=BA=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E5=A5=87=E6=80=AA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/net.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/parts/net.lua b/parts/net.lua index 4add2150..40008783 100644 --- a/parts/net.lua +++ b/parts/net.lua @@ -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