IOS-1540 Using new errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Wed, 05 Jun 2019 16:12:20 +0200
branchIOS-1540_GOOD
changeset 8920f8d91b944ceb
parent 8919 bf6b5b50a651
child 8921 5c6b5b6c49e2
IOS-1540 Using new errorAndCrash.
subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift
     1.1 --- a/subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift	Wed Jun 05 16:12:20 2019 +0200
     1.2 +++ b/subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift	Wed Jun 05 16:12:20 2019 +0200
     1.3 @@ -178,7 +178,7 @@
     1.4              let matches = regex.matches(in: self, options: [], range: wholeRange())
     1.5              return matches.count > 0
     1.6          } catch {
     1.7 -            Log.shared.errorAndCrash("%{public}@", error.localizedDescription)
     1.8 +            Log.shared.errorAndCrash(error)
     1.9          }
    1.10          return false
    1.11      }
    1.12 @@ -209,8 +209,7 @@
    1.13                  }
    1.14              }
    1.15          } catch {
    1.16 -            Log.shared.errorAndCrash("%{public}@",
    1.17 -                                                        error.localizedDescription)
    1.18 +            Log.shared.errorAndCrash(error)
    1.19          }
    1.20          return self
    1.21      }
    1.22 @@ -233,8 +232,7 @@
    1.23                  }
    1.24              }
    1.25          } catch {
    1.26 -            Log.shared.errorAndCrash("%{public}@",
    1.27 -                                                        error.localizedDescription)
    1.28 +            Log.shared.errorAndCrash(error)
    1.29          }
    1.30          return self
    1.31      }