Created
June 14, 2015 12:04
-
-
Save konrad1977/dfc4c39bc67a07a14cde to your computer and use it in GitHub Desktop.
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 LoginError.EmptyUsername { | |
print("empty username") | |
} catch LoginError.EmptyPassword { | |
print("empty password") | |
} catch { | |
print(error) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment