Created
June 14, 2015 12:13
-
-
Save konrad1977/a0353378fcee21df0bc5 to your computer and use it in GitHub Desktop.
Refactored version of login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func login() { | |
do { | |
let token = try loginUserWithUsername("konrad1977", password: nil) | |
print("user logged in \(token)") | |
} catch let error as LoginError { | |
print(error.description) | |
} catch { | |
print(error) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment