From d4ec756fe392377658c6884332d486d5333cf1cb Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Wed, 21 Jan 2026 15:17:12 +0100 Subject: [PATCH] log errors when add child and remove child fail --- ElementX/Sources/Services/Spaces/SpaceServiceProxy.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Services/Spaces/SpaceServiceProxy.swift b/ElementX/Sources/Services/Spaces/SpaceServiceProxy.swift index 3c9a6141f..cfa82cd3b 100644 --- a/ElementX/Sources/Services/Spaces/SpaceServiceProxy.swift +++ b/ElementX/Sources/Services/Spaces/SpaceServiceProxy.swift @@ -85,7 +85,7 @@ class SpaceServiceProxy: SpaceServiceProxyProtocol { do { return try await .success(spaceService.addChildToSpace(childId: childID, spaceId: spaceID)) } catch { - MXLog.error("Failed to add child \(childID) to space \(spaceID)") + MXLog.error("Failed to add child \(childID) to space \(spaceID): \(error)") return .failure(.sdkError(error)) } } @@ -94,7 +94,7 @@ class SpaceServiceProxy: SpaceServiceProxyProtocol { do { return try await .success(spaceService.removeChildFromSpace(childId: childID, spaceId: spaceID)) } catch { - MXLog.error("Failed to remove child \(childID) to space \(spaceID)") + MXLog.error("Failed to remove child \(childID) to space \(spaceID): \(error)") return .failure(.sdkError(error)) } }