From 1ed0dd37fbcf06abd0b368ee7dc6c72cb67e566d Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 16 Jan 2023 00:22:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E7=9A=84=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF=E4=BB=A5?= =?UTF-8?q?=E6=96=B9=E4=BE=BFdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/shared/api/socket.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/shared/api/socket.ts b/client/shared/api/socket.ts index 87a2ad1f..246c40f0 100644 --- a/client/shared/api/socket.ts +++ b/client/shared/api/socket.ts @@ -54,7 +54,13 @@ export class AppSocket { if (resp.result === true) { resolve(resp.data); } else if (resp.result === false) { - reject(new SocketEventError(resp.message)); + reject( + new SocketEventError( + `[${eventName}]: ${resp.message}: \ndata: ${JSON.stringify( + eventData + )}` + ) + ); } }); });