IOS-1540 Back out 96d2b670317d: Using new errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 90006e4119a0d977
parent 8999 054ddf403456
child 9001 cb0ed5f550cc
IOS-1540 Back out 96d2b670317d: 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 @@ -152,7 +152,7 @@
     1.4                                                      range: range,
     1.5                                                      withTemplate: replacee)
     1.6          } catch {
     1.7 -            Log.shared.errorAndCrash(message: "Caught!")
     1.8 +            Log.shared.errorAndCrash("Catched!")
     1.9              return result
    1.10          }
    1.11          return result
    1.12 @@ -178,7 +178,7 @@
    1.13              let matches = regex.matches(in: self, options: [], range: wholeRange())
    1.14              return matches.count > 0
    1.15          } catch {
    1.16 -            Log.shared.errorAndCrash(error: error)
    1.17 +            Log.shared.errorAndCrash(error)
    1.18          }
    1.19          return false
    1.20      }
    1.21 @@ -209,7 +209,7 @@
    1.22                  }
    1.23              }
    1.24          } catch {
    1.25 -            Log.shared.errorAndCrash(error: error)
    1.26 +            Log.shared.errorAndCrash(error)
    1.27          }
    1.28          return self
    1.29      }
    1.30 @@ -232,7 +232,7 @@
    1.31                  }
    1.32              }
    1.33          } catch {
    1.34 -            Log.shared.errorAndCrash(error: error)
    1.35 +            Log.shared.errorAndCrash(error)
    1.36          }
    1.37          return self
    1.38      }