IOS-1540 Back out: Handling all simple error crashes. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Wed, 05 Jun 2019 16:12:20 +0200
branchIOS-1540_GOOD
changeset 89161e1e22c27e25
parent 8915 693b09c69acc
child 8917 2b64ca6005e4
IOS-1540 Back out: Handling all simple error crashes.
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(error)
     1.8 +            Log.shared.errorAndCrash("%{public}@", error.localizedDescription)
     1.9          }
    1.10          return false
    1.11      }
    1.12 @@ -209,7 +209,8 @@
    1.13                  }
    1.14              }
    1.15          } catch {
    1.16 -            Log.shared.errorAndCrash(error)
    1.17 +            Log.shared.errorAndCrash("%{public}@",
    1.18 +                                                        error.localizedDescription)
    1.19          }
    1.20          return self
    1.21      }
    1.22 @@ -232,7 +233,8 @@
    1.23                  }
    1.24              }
    1.25          } catch {
    1.26 -            Log.shared.errorAndCrash(error)
    1.27 +            Log.shared.errorAndCrash("%{public}@",
    1.28 +                                                        error.localizedDescription)
    1.29          }
    1.30          return self
    1.31      }