Created
June 14, 2015 12:09
-
-
Save konrad1977/9c03c6c94b973341e378 to your computer and use it in GitHub Desktop.
Login error extension
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
extension LoginError : CustomStringConvertible { | |
var description: String { | |
switch self { | |
case .EmptyUsername: | |
return "Username cannot be empty" | |
case .EmptyPassword: | |
return "Password cannot be empty" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment