fix: Prevent recipient and identity parsing errors from being indistinguishable
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user