log errors when add child and remove child fail

This commit is contained in:
Mauro Romito
2026-01-21 15:17:12 +01:00
committed by Mauro
parent 24f1c0c27f
commit 6be5a0680f

View File

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