Skip to content

Commit

Permalink
Problem: encrypto_to_validators fail if any validator not registered
Browse files Browse the repository at this point in the history
Solution:
- just log the error and continue, more UX friendly.
  • Loading branch information
yihuang committed May 13, 2024
1 parent 24ef565 commit 17368f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/e2ee/client/cli/encrypt_to_validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cli

import (
"context"
"fmt"
"io"
"os"

Expand Down Expand Up @@ -65,7 +66,8 @@ func EncryptToValidatorsCommand() *cobra.Command {
for i, key := range rsp.Keys {
recipient, err := age.ParseX25519Recipient(key)
if err != nil {
return err
fmt.Fprintf(os.Stderr, "failed to parse recipient key: %v\n", err)
continue
}
recipients[i] = recipient
}
Expand Down

0 comments on commit 17368f8

Please sign in to comment.