mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Track all errors in Sentry
This commit is contained in:
+3
-3
@@ -224,7 +224,7 @@ extension ContactsPickerViewModel: ContactsTableViewControllerDelegate {
|
||||
case .success:
|
||||
self.coordinatorDelegate?.contactsPickerViewModelDidEndInvite(self)
|
||||
case .failure:
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite \(participantId) due to error; \(response.error ?? "nil")")
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite participant", context: response.error)
|
||||
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: response.error)
|
||||
}
|
||||
}
|
||||
@@ -255,7 +255,7 @@ extension ContactsPickerViewModel: ContactsTableViewControllerDelegate {
|
||||
case .success:
|
||||
self.coordinatorDelegate?.contactsPickerViewModelDidEndInvite(self)
|
||||
case .failure:
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite \(participantId) by email due to error; \(response.error ?? "nil")")
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite participant by email", context: response.error)
|
||||
|
||||
if let error = response.error as NSError?, error.domain == kMXRestClientErrorDomain, error.code == MXRestClientErrorMissingIdentityServer {
|
||||
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: nil)
|
||||
@@ -273,7 +273,7 @@ extension ContactsPickerViewModel: ContactsTableViewControllerDelegate {
|
||||
case .success:
|
||||
self.coordinatorDelegate?.contactsPickerViewModelDidEndInvite(self)
|
||||
case .failure:
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite \(participantId) due to error; \(response.error ?? "nil")")
|
||||
MXLog.error("[ContactsPickerViewModel] Failed to invite participant", context: response.error)
|
||||
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: response.error)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user