Improve error message

This commit is contained in:
Ethan Frey
2017-10-23 18:39:34 +02:00
parent 61d1bdb5ed
commit 9601e48ab4

View File

@ -55,7 +55,7 @@ func (e secretbox) Decrypt(saltBytes []byte, encBytes []byte, passphrase string)
}
privKey, err = crypto.PrivKeyFromBytes(privKeyBytes)
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
}