         return result
     }
     
-    private func displayErrorAlert(errorID: Int, tryAgain: Bool) {
+    private func displayErrorAlert(errorID: HomewardErrorStates, tryAgain: Bool) {
         
         println("displayErrorAlert")
 

            let contactName = ABRecordCopyValue(person,kABPersonFirstNameProperty).takeRetainedValue() as String
            println("The name of this contact is \(contactName)")
        } else {
            self.displayErrorAlert(self.kErrorHomewardContactMissing, tryAgain: true)
        }
    }
        

    
    private let kErrorNotOkToAccessAddressBook = 2
    private let kErrorHomewardContactMissing   = 3
    
    enum HomewardErrorStates {
        case userRejectedAddressBook, homewardContactMissing, deniedAccessAddressBook, addressBookRestricted, unknownError
    }
    
    // get the address book ref when needed
    
