Prior to Swift 3 I could get the error code by accessing error.code
Now under Swift 3 it seems the only attribute of the Error object is a string based textual description. How can we get the enum value of error in this case?
optional func locationManager(_ manager: CLLocationManager,
didFailWithError error: Error)