IOS-1540 Back out 1e1e22c27e25: Back out: Handling all simple error crashes. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 9008eedfcc5d3fab
parent 9007 0c30b7fe3132
child 9009 5a18c5977014
IOS-1540 Back out 1e1e22c27e25: Back out: Handling all simple error crashes.
subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift
     1.1 --- a/subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/subModules/pEpIOSToolbox/pEpIOSToolbox/Foundation/String+Extensions.swift	Tue Jun 11 16:28:31 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      }