IOS-1540 Back out f8d91b944ceb: Using new errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 9004eac1ef2be8d0
parent 9003 f06312476bba
child 9005 5c1178ccf99c
IOS-1540 Back out f8d91b944ceb: Using new errorAndCrash.
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(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      }