Skip to content

Instantly share code, notes, and snippets.

@konrad1977
Created June 14, 2015 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konrad1977/9c03c6c94b973341e378 to your computer and use it in GitHub Desktop.
Save konrad1977/9c03c6c94b973341e378 to your computer and use it in GitHub Desktop.
Login error extension
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