         if CLLocationManager.locationServicesEnabled() {
             return nil
         } else {
-            return NSError(
-                domain: THGLocationErrorDomain,
-                code: THGLocationErrorCode.LocationServicesDisabled.rawValue,
-                userInfo: [NSLocalizedDescriptionKey: "Location services are not enabled."]
-            )
+            return NSError(THGLocationError.LocationServicesDisabled)
         }
     }
     


let THGLocationErrorDomain: String = "THGLocationErrorDomain"

public enum THGLocationErrorCode: Int {
    /// The user has denied access to location services or their device has been configured to restrict it.
    case AuthorizationDeniedOrRestricted
    /// The caller is asking for authorization that's different from what the user has provided.
    case AuthorizationChanged
    /// Location services are disabled.
    case LocationServicesDisabled
}

/**

        var requestAuth = false
        switch authStatus {
        case .Denied, .Restricted:
            return NSError(THGLocationError.AuthorizationDeniedOrRestricted)
        case .NotDetermined:
            requestAuth = true
        case .AuthorizedAlways:
            if authorization != .Always {
                return NSError(THGLocationError.AuthorizationWhenInUse)
            }
        case .AuthorizedWhenInUse:
            if authorization != .WhenInUse {
                return NSError(THGLocationError.AuthorizationAlways)
            }
        }
        
