mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 13:11:38 +00:00
Improve error message
This commit is contained in:
@ -55,7 +55,7 @@ func (e secretbox) Decrypt(saltBytes []byte, encBytes []byte, passphrase string)
|
|||||||
}
|
}
|
||||||
privKey, err = crypto.PrivKeyFromBytes(privKeyBytes)
|
privKey, err = crypto.PrivKeyFromBytes(privKeyBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return crypto.PrivKey{}, errors.Wrap(err, "Couldn't get privKey from bytes")
|
return crypto.PrivKey{}, errors.Wrap(err, "Private Key")
|
||||||
}
|
}
|
||||||
return privKey, nil
|
return privKey, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user