fix: Prevent recipient and identity parsing errors from being indistinguishable

This commit is contained in:
Felicitas Pojtinger
2021-12-08 22:01:30 +01:00
parent f6b1ab0320
commit f6c672756f
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ var keygenCmd = &cobra.Command{
return err
}
pubkey, privkey, err := utility.Keygen(
privkey, pubkey, err := utility.Keygen(
config.PipeConfig{
Compression: viper.GetString(compressionFlag),
Encryption: viper.GetString(encryptionFlag),

View File

@@ -6,7 +6,7 @@ var (
ErrEncryptionFormatUnknown = errors.New("unknown encryption format")
ErrEncryptionFormatUnsupported = errors.New("unsupported encryption format")
ErrIdentityUnparsable = errors.New("recipient could not be parsed")
ErrIdentityUnparsable = errors.New("identity could not be parsed")
ErrRecipientUnparsable = errors.New("recipient could not be parsed")
ErrEmbeddedHeaderMissing = errors.New("embedded header is missing")