Wrap GopenPGP errors into more understandable app errors

This commit is contained in:
Danny Moesch 2019-10-20 12:14:51 +02:00 committed by Mingshen Sun
parent fa820e277f
commit 44cb864642
5 changed files with 23 additions and 4 deletions

View file

@ -17,6 +17,8 @@ public enum AppError: Error, Equatable {
case GitCommit
case PasswordEntity
case PgpPublicKeyNotExist
case KeyExpiredOrIncompatible
case WrongPassphrase
case WrongPasswordFilename
case Decryption
case Encryption