Simplify PasswordStore model

This commit is contained in:
Bob Sun 2017-04-30 18:29:47 -05:00
parent eba79da0e6
commit 53ea744bb6
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 52 additions and 49 deletions

View file

@ -14,6 +14,7 @@ enum AppError: Error {
case KeyImportError
case PasswordDuplicatedError
case GitResetError
case PGPPublicKeyNotExistError
case UnknownError
var localizedDescription: String {
@ -28,6 +29,8 @@ enum AppError: Error {
return "Cannot add the password: password duplicated."
case .GitResetError:
return "Cannot decide how to reset."
case .PGPPublicKeyNotExistError:
return "PGP public key doesn't exist."
case .UnknownError:
return "Unknown error."
}