Skip to content

Commit 836a088

Browse files
committed
rebase to current main
Signed-off-by: Alberto Ricart <[email protected]>
1 parent aae1814 commit 836a088

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/reissueaccount.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ func createReissueAccountCmd() *cobra.Command {
4949
type reissueAccount struct {
5050
AccountContextParams
5151
turnIntoSigningKey bool
52-
name string
5352
}
5453

5554
func (p *reissueAccount) SetDefaults(ctx ActionCtx) error {
@@ -117,7 +116,11 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) {
117116
return r, err
118117
}
119118
old := ac.Subject
120-
ac.Subject, err = akp.PublicKey()
119+
if ac.Subject, err = akp.PublicKey(); err != nil {
120+
rr.AddError("failed generate account public key: %v", err)
121+
return r, err
122+
}
123+
121124
if p.turnIntoSigningKey {
122125
ac.SigningKeys.Add(old)
123126
}

0 commit comments

Comments
 (0)