From de2996cc2e10fcf06b29d970b98b2e99204fc284 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 5 Dec 2024 22:19:33 +0300 Subject: [PATCH] Fix map creation dialog --- client/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/client.ts b/client/src/client.ts index 596d95a9..ff049135 100644 --- a/client/src/client.ts +++ b/client/src/client.ts @@ -201,7 +201,7 @@ class Client { this.socket.emit(eventName as any, data, (err: any, data: SocketResponse) => { if(err) { const cause = deserializeError(err); - reject(deserializeError({ ...serializeError(outerError), message: cause.message, cause })); + reject(deserializeError({ ...serializeError(outerError), message: cause.message, name: cause.name, cause })); this._simulateEvent("emitReject", eventName as any, err); } else { const fixedData = this._fixResponseObject(eventName, data);