cmd/age: improve incorrect passphrase error message

Fixes #41
This commit is contained in:
Filippo Valsorda
2019-12-31 14:20:39 +01:00
parent 7935150f35
commit e43cf8b4a2
2 changed files with 12 additions and 1 deletions
+3
View File
@@ -127,6 +127,9 @@ RecipientsLoop:
fileKey, err = i.Unwrap(r)
if err != nil {
if err == ErrIncorrectIdentity {
// TODO: we should collect these errors and return them as an
// []error type with an Error method. That will require turning
// ErrIncorrectIdentity into an interface or wrapper error.
continue
}
return nil, err