refactor: 增加更多的报错信息以方便debug

pull/64/head
moonrailgun 2 years ago
parent cf9cbf0503
commit 1ed0dd37fb

@ -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
)}`
)
);
}
});
});

Loading…
Cancel
Save