IOS-1540 Back out 8703e82bd7b3: Using new errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 899288e45a68e6b5
parent 8991 326f7f341c82
child 8993 bc273120c66e
IOS-1540 Back out 8703e82bd7b3: Using new errorAndCrash.
pEpForiOS/UI/Util/SecureWebViewController/SecureWebViewController.swift
     1.1 --- a/pEpForiOS/UI/Util/SecureWebViewController/SecureWebViewController.swift	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Util/SecureWebViewController/SecureWebViewController.swift	Tue Jun 11 16:28:31 2019 +0200
     1.3 @@ -7,8 +7,6 @@
     1.4  //
     1.5  
     1.6  import WebKit
     1.7 -import os.log
     1.8 -
     1.9  import pEpIOSToolbox
    1.10  
    1.11  protocol SecureWebViewControllerDelegate: class {
    1.12 @@ -170,8 +168,8 @@
    1.13                  forIdentifier: "pep.security.SecureWebViewController.block_all_external_content",
    1.14                  encodedContentRuleList: blockRules) { (contentRuleList, error) in
    1.15                      if let error = error {
    1.16 -                        os_log("compile error: %{public}@", type: .error, "\(error)")
    1.17 -                        Log.shared.errorAndCrash(error: error)
    1.18 +                        Log.shared.errorAndCrash(
    1.19 +                            "Compile error: %@", error.localizedDescription)
    1.20                          return
    1.21                      }
    1.22                      compiledBlockList = contentRuleList