fix: 一些异常类型

This commit is contained in:
手瓜一十雪 committed 2024-11-05 10:07:56 +08:00
1 parent 479b971b0c
commit f7c1951191
2 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ export abstract class PacketClient {
}): Promise<RecvPacketData> {
return new Promise<RecvPacketData>((resolve, reject) => {
if (!this.isAvailable) {
throw new Error("WebSocket is not connected");
throw new Error("Packet Service is not available");
}
this.sendCommandImpl(cmd, data, trace_id);
if (rsp) {