IOS-1540 Optional message in errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Wed, 05 Jun 2019 16:12:20 +0200
branchIOS-1540_GOOD
changeset 89215c6b5b6c49e2
parent 8920 f8d91b944ceb
child 8922 49f9d1116867
IOS-1540 Optional message in errorAndCrash.
Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift
     1.1 --- a/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Wed Jun 05 16:12:20 2019 +0200
     1.2 +++ b/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Wed Jun 05 16:12:20 2019 +0200
     1.3 @@ -164,8 +164,8 @@
     1.4      public func errorAndCrash(function: String = #function,
     1.5                                filePath: String = #file,
     1.6                                fileLine: Int = #line,
     1.7 -                              _ message: StaticString) {
     1.8 -        SystemUtils.crash("\(filePath):\(function):\(fileLine) - \(message)")
     1.9 +                              _ message: StaticString? = nil) {
    1.10 +        SystemUtils.crash("\(filePath):\(function):\(fileLine) - \(message ?? "no message")")
    1.11      }
    1.12  
    1.13      public func errorAndCrash(function: String = #function,