mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
forgot to wrap these two errors (#3156)
This commit is contained in:
parent
ccc7d8d7b7
commit
2ec8a46cb2
@ -51,7 +51,7 @@ func NewValidatorAccount(directory string, password string) error {
|
||||
}
|
||||
shardWithdrawalKeyFile = shardWithdrawalKeyFile + hex.EncodeToString(shardWithdrawalKey.PublicKey.Marshal())[:12]
|
||||
if err := ks.StoreKey(shardWithdrawalKeyFile, shardWithdrawalKey, password); err != nil {
|
||||
return fmt.Errorf("unable to store key %v", err)
|
||||
return errors.Wrap(err, "unable to store key %v")
|
||||
}
|
||||
log.WithField(
|
||||
"path",
|
||||
@ -63,7 +63,7 @@ func NewValidatorAccount(directory string, password string) error {
|
||||
}
|
||||
validatorKeyFile = validatorKeyFile + hex.EncodeToString(validatorKey.PublicKey.Marshal())[:12]
|
||||
if err := ks.StoreKey(validatorKeyFile, validatorKey, password); err != nil {
|
||||
return fmt.Errorf("unable to store key %v", err)
|
||||
return errors.Wrap(err,"unable to store key %v")
|
||||
}
|
||||
log.WithField(
|
||||
"path",
|
||||
|
Loading…
Reference in New Issue
Block a user