|
|
@ -103,7 +103,22 @@ extension BiometricAuthenticationWireframe: BiometricAuthenticationWireframeInpu |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
self.delegate?.viewController(vc, didFailWithError: error!, errorMessage: error?.localizedDescription) |
|
|
|
guard let error = error else { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let message: String |
|
|
|
|
|
|
|
switch error.code { |
|
|
|
case -7: |
|
|
|
message = "\(error.localizedDescription)\n Check your device setting." |
|
|
|
default: |
|
|
|
message = error.localizedDescription |
|
|
|
} |
|
|
|
|
|
|
|
view.alert(message: message, title: "Error"){ |
|
|
|
self.delegate?.viewController(vc, didFailWithError: error, errorMessage: error.localizedDescription) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|