Pārlūkot izejas kodu

log error if adding a contact id to a group failed instead of terminating the whole app

cyberta 5 gadi atpakaļ
vecāks
revīzija
0dc60d70e1
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      deltachat-ios/Controller/GroupNameController.swift

+ 1 - 2
deltachat-ios/Controller/GroupNameController.swift

@@ -38,8 +38,7 @@ class GroupNameController: UITableViewController {
             if success == 1 {
                 logger.info("successfully added \(contactId) to group \(groupName)")
             } else {
-                // FIXME:
-                fatalError("failed to add \(contactId) to group \(groupName)")
+                logger.error("failed to add \(contactId) to group \(groupName)")
             }
         }