Simplify PasswordStore model
This commit is contained in:
parent
eba79da0e6
commit
53ea744bb6
2 changed files with 52 additions and 49 deletions
|
|
@ -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."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue