fix: 一些异常类型
This commit is contained in:
1 parent
479b971b0c
commit
f7c1951191
2 files changed
+10
-9
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user