IOS-1540 Back out 5b108aa06cc9: Using new errorAndCrash. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 8995678ed340af38
parent 8994 4281d230506f
child 8996 a98d077767ff
IOS-1540 Back out 5b108aa06cc9: Using new errorAndCrash.
pEpForiOS/UI/Login/ViewModel/LoginViewModel.swift
     1.1 --- a/pEpForiOS/UI/Login/ViewModel/LoginViewModel.swift	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Login/ViewModel/LoginViewModel.swift	Tue Jun 11 16:28:31 2019 +0200
     1.3 @@ -230,7 +230,7 @@
     1.4                  result: .smtpError(smtpError))
     1.5          } else {
     1.6              if let theError = error {
     1.7 -                Log.shared.errorAndCrash(error: theError)
     1.8 +                Log.shared.errorAndCrash("%@", theError.localizedDescription)
     1.9              } else {
    1.10                  accountVerificationResultDelegate?.didVerify(result: .ok)
    1.11              }
    1.12 @@ -245,7 +245,7 @@
    1.13                  informAccountVerificationResultDelegate(error: nil)
    1.14                  mySelfer?.startMySelf()
    1.15              } catch {
    1.16 -                Log.shared.errorAndCrash(error: error)
    1.17 +                Log.shared.errorAndCrash("%@", error.localizedDescription)
    1.18              }
    1.19          case .failure(let error):
    1.20              informAccountVerificationResultDelegate(error: error)