mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
log errors when add child and remove child fail
This commit is contained in:
@@ -85,7 +85,7 @@ class SpaceServiceProxy: SpaceServiceProxyProtocol {
|
|||||||
do {
|
do {
|
||||||
return try await .success(spaceService.addChildToSpace(childId: childID, spaceId: spaceID))
|
return try await .success(spaceService.addChildToSpace(childId: childID, spaceId: spaceID))
|
||||||
} catch {
|
} 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))
|
return .failure(.sdkError(error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ class SpaceServiceProxy: SpaceServiceProxyProtocol {
|
|||||||
do {
|
do {
|
||||||
return try await .success(spaceService.removeChildFromSpace(childId: childID, spaceId: spaceID))
|
return try await .success(spaceService.removeChildFromSpace(childId: childID, spaceId: spaceID))
|
||||||
} catch {
|
} 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))
|
return .failure(.sdkError(error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user