mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 05:47:59 -05:00
forgot to wrap these two errors (#3156)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user